/*
- * Copyright (C) 2003-2004, International Business Machines Corporation
+ ********************************************************************************
+ * Copyright (C) 2003-2007, International Business Machines Corporation
* and others. All Rights Reserved.
********************************************************************************
*
* <p>
* @internal
*/
-class U_I18N_API BuddhistCalendar : public GregorianCalendar {
+class BuddhistCalendar : public GregorianCalendar {
public:
/**
* @return The class ID for all objects of this class.
* @internal
*/
- static UClassID U_EXPORT2 getStaticClassID(void);
+ U_I18N_API static UClassID U_EXPORT2 getStaticClassID(void);
/**
* return the calendar type, "buddhist".
*/
virtual const char * getType() const;
- /**
- * (Overrides Calendar) UDate Arithmetic function. Adds the specified (signed) amount
- * of time to the given time field, based on the calendar's rules. For more
- * information, see the documentation for Calendar::add().
- *
- * @param field The time field.
- * @param amount The amount of date or time to be added to the field.
- * @param status Output param set to success/failure code on exit. If any value
- * previously set in the time field is invalid, this will be set to
- * an error status.
- * @draft ICU 2.6
- */
- virtual void add(UCalendarDateFields field, int32_t amount, UErrorCode& status);
-
- /**
- * Gets the maximum value for the given time field. e.g. for DAY_OF_MONTH,
- * 31.
- *
- * @param field The given time field.
- * @return The maximum value for the given time field.
- * @draft ICU 2.6
- */
- int32_t getMaximum(UCalendarDateFields field) const;
-
- /**
- * Gets the lowest maximum value for the given field if varies. Otherwise same as
- * getMaximum(). e.g., for Gregorian DAY_OF_MONTH, 28.
- *
- * @param field The given time field.
- * @return The lowest maximum value for the given time field.
- * @draft ICU 2.6
- */
- int32_t getLeastMaximum(UCalendarDateFields field) const;
-
- /**
- * @deprecated ICU 2.6 use UCalendarDateFields instead of EDateFields
- */
- inline virtual int32_t getMaximum(EDateFields field) const { return getMaximum((UCalendarDateFields)field); }
- /**
- * @deprecated ICU 2.6 use UCalendarDateFields instead of EDateFields
- */
- inline virtual int32_t getLeastMaximum(EDateFields field) const { return getLeastMaximum((UCalendarDateFields)field); }
- /**
- * @deprecated ICU 2.6 use UCalendarDateFields instead of EDateFields
- */
- inline virtual void add(EDateFields field, int32_t amount, UErrorCode& status) { add((UCalendarDateFields)field, amount, status); }
-
private:
BuddhistCalendar(); // default constructor not implemented
virtual int32_t handleComputeMonthStart(int32_t eyear, int32_t month,
UBool useMonth) const;
- /**
- * month length of current month
- * @internal
- */
- virtual int32_t monthLength(int32_t month) const;
- /**
- * month length of month
- * @internal
- */
- virtual int32_t monthLength(int32_t month, int32_t year) const;
-
- /**
- * month length of current month
- * @internal
- */
- int32_t getGregorianYear(UErrorCode& status) const;
-
- /**
- * Calculate the era for internal computation
- * @internal
- */
- virtual int32_t internalGetEra() const;
-
/**
* Returns TRUE because the Buddhist Calendar does have a default century
* @internal