]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/buddhcal.h
ICU-400.37.tar.gz
[apple/icu.git] / icuSources / i18n / buddhcal.h
index bb3316b43795f5a6845e51ea30d5fea05f579dc7..735f61890a7b617f8cb33b8d56cc07fdfbab8b50 100644 (file)
@@ -1,5 +1,6 @@
 /*
- * Copyright (C) 2003-2004, International Business Machines Corporation
+ ********************************************************************************
+ * Copyright (C) 2003-2007, International Business Machines Corporation
  * and others. All Rights Reserved.
  ********************************************************************************
  *
@@ -43,7 +44,7 @@ U_NAMESPACE_BEGIN
  * <p>
  * @internal
  */
-class U_I18N_API BuddhistCalendar : public GregorianCalendar {
+class BuddhistCalendar : public GregorianCalendar {
 public:
 
     /**
@@ -117,7 +118,7 @@ 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".
@@ -127,53 +128,6 @@ public:
      */
     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
 
@@ -217,29 +171,6 @@ private:
     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