X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/73c04bcfe1096173b00431f0cdc742894b15eef0..08b89b0a244153b9f5bbb2f49c55ab0f7298122e:/icuSources/i18n/hebrwcal.h diff --git a/icuSources/i18n/hebrwcal.h b/icuSources/i18n/hebrwcal.h index 64d19e8a..04d59bf8 100644 --- a/icuSources/i18n/hebrwcal.h +++ b/icuSources/i18n/hebrwcal.h @@ -1,6 +1,6 @@ /* ****************************************************************************** -* Copyright (C) 2003-2006, International Business Machines Corporation +* Copyright (C) 2003-2013, International Business Machines Corporation * and others. All Rights Reserved. ****************************************************************************** * @@ -273,6 +273,10 @@ public: ` */ virtual void roll(EDateFields field, int32_t amount, UErrorCode& status); + /** + * @internal + */ + static UBool isLeapYear(int32_t year) ; protected: @@ -358,6 +362,13 @@ public: UBool useMonth) const; + /** + * Validate a single field of this calendar. + * Overrides Calendar::validateField(int) to provide + * special handling for month validation for Hebrew calendar. + * @internal + */ + virtual void validateField(UCalendarDateFields field, UErrorCode &status); protected: @@ -391,49 +402,6 @@ public: */ virtual int32_t defaultCenturyStartYear() const; - private: // default century stuff. - /** - * The system maintains a static default century start date. This is initialized - * the first time it is used. Before then, it is set to SYSTEM_DEFAULT_CENTURY to - * indicate an uninitialized state. Once the system default century date and year - * are set, they do not change. - */ - static UDate fgSystemDefaultCenturyStart; - - /** - * See documentation for systemDefaultCenturyStart. - */ - static int32_t fgSystemDefaultCenturyStartYear; - - /** - * Default value that indicates the defaultCenturyStartYear is unitialized - */ - static const int32_t fgSystemDefaultCenturyYear; - - /** - * start of default century, as a date - */ - static const UDate fgSystemDefaultCentury; - - /** - * Returns the beginning date of the 100-year window that dates - * with 2-digit years are considered to fall within. - */ - UDate internalGetDefaultCenturyStart(void) const; - - /** - * Returns the first year of the 100-year window that dates with - * 2-digit years are considered to fall within. - */ - int32_t internalGetDefaultCenturyStartYear(void) const; - - /** - * Initializes the 100-year window that dates with 2-digit years - * are considered to fall within so that its start date is 80 years - * before the current time. - */ - static void initializeSystemDefaultCentury(void); - private: // Calendar-specific implementation /** * Finds the day # of the first day in the given Hebrew year. @@ -467,10 +435,6 @@ public: */ int32_t yearType(int32_t year) const; - /** - * @internal - */ - static UBool isLeapYear(int32_t year) ; /** * @internal */