X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/4388f060552cc537e71e957d32f35e9d75a61233..f3c0d7a59d99c2a94c6b8822291f0e42be3773c9:/icuSources/i18n/unicode/gregocal.h diff --git a/icuSources/i18n/unicode/gregocal.h b/icuSources/i18n/unicode/gregocal.h index 3a618397..4ae55625 100644 --- a/icuSources/i18n/unicode/gregocal.h +++ b/icuSources/i18n/unicode/gregocal.h @@ -1,5 +1,7 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /* -* Copyright (C) 1997-2012, International Business Machines Corporation and others. +* Copyright (C) 1997-2013, International Business Machines Corporation and others. * All Rights Reserved. ******************************************************************************** * @@ -35,6 +37,7 @@ * \brief C++ API: Concrete class which provides the standard calendar. */ +#if U_SHOW_CPLUSPLUS_API U_NAMESPACE_BEGIN /** @@ -468,7 +471,6 @@ public: */ static UClassID U_EXPORT2 getStaticClassID(void); -/* Cannot use #ifndef U_HIDE_DRAFT_API for the following draft method since it is virtual */ /** * Returns the calendar type name string for this Calendar object. * The returned string is the legacy ICU calendar attribute value, @@ -477,7 +479,7 @@ public: * For more details see the Calendar::getType() documentation. * * @return legacy calendar type name string - * @draft ICU 49 + * @stable ICU 49 */ virtual const char * getType() const; @@ -689,7 +691,6 @@ public: * (Gregorian) 00:00:00 UTC, that is, October 4, 1582 (Julian) is followed * by October 15, 1582 (Gregorian). This corresponds to Julian day number * 2299161. This is measured from the standard epoch, not in Julian Days. - * @internal */ UDate fGregorianCutover; @@ -752,72 +753,26 @@ public: public: // internal implementation /** - * @internal * @return TRUE if this calendar has the notion of a default century + * @internal */ virtual UBool haveDefaultCentury() const; /** - * @internal * @return the start of the default century + * @internal */ virtual UDate defaultCenturyStart() const; /** - * @internal * @return the beginning year of the default century + * @internal */ virtual int32_t defaultCenturyStartYear() const; - - private: - /** - * 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; - - /** - * Default value that indicates the UDate of the beginning of the system default century - */ - static const UDate fgSystemDefaultCentury; - - /** - * Returns the beginning date of the 100-year window that dates with 2-digit years - * are considered to fall within. - * @return 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. - * @return 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); - }; U_NAMESPACE_END +#endif // U_SHOW_CPLUSPLUS_API #endif /* #if !UCONFIG_NO_FORMATTING */