ICU-2436 don't hide Calendar compatibility functions

X-SVN-Rev: 12196
This commit is contained in:
Steven R. Loomis 2003-05-30 01:44:41 +00:00
parent 9a31c7d78d
commit 1d4ef75826
2 changed files with 20 additions and 4 deletions

View File

@ -143,6 +143,16 @@ public:
*/
virtual void add(UCalendarDateFields field, int32_t amount, UErrorCode& status);
/**
* API overrides
* @private
*/
int32_t getMaximum(UCalendarDateFields field) const;
int32_t getLeastMaximum(UCalendarDateFields field) const;
inline virtual int32_t getMaximum(EDateFields field) const { return getMaximum((UCalendarDateFields)field); }
inline virtual int32_t getLeastMaximum(EDateFields field) const { return getLeastMaximum((UCalendarDateFields)field); }
inline virtual void add(EDateFields field, int32_t amount, UErrorCode& status) { add((UCalendarDateFields)field, amount, status); }
private:
BuddhistCalendar(); // default constructor not implemented
@ -153,8 +163,7 @@ private:
virtual int32_t monthLength(int32_t month) const;
virtual int32_t monthLength(int32_t month, int32_t year) const;
int32_t getGregorianYear(UErrorCode& status) const;
int32_t getMaximum(UCalendarDateFields field) const;
int32_t getLeastMaximum(UCalendarDateFields field) const;
virtual int32_t internalGetEra() const;
virtual void timeToFields(UDate theTime, UBool quick, UErrorCode& status);
virtual UBool haveDefaultCentury() const;

View File

@ -144,6 +144,15 @@ public:
virtual UDate defaultCenturyStart() const;
virtual int32_t defaultCenturyStartYear() const;
/**
* @internal
* API overrides
*/
int32_t getMaximum(UCalendarDateFields field) const;
int32_t getLeastMaximum(UCalendarDateFields field) const;
inline virtual int32_t getMaximum(EDateFields field) const { return getMaximum((UCalendarDateFields)field); }
inline virtual int32_t getLeastMaximum(EDateFields field) const { return getLeastMaximum((UCalendarDateFields)field); }
private:
JapaneseCalendar(); // default constructor not implemented
@ -153,8 +162,6 @@ protected:
virtual int32_t monthLength(int32_t month) const;
virtual int32_t monthLength(int32_t month, int32_t year) const;
int32_t getGregorianYear(UErrorCode& status) const;
int32_t getMaximum(UCalendarDateFields field) const;
int32_t getLeastMaximum(UCalendarDateFields field) const;
virtual int32_t internalGetEra() const;
virtual void timeToFields(UDate theTime, UBool quick, UErrorCode& status);