]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/unicode/decimfmt.h
ICU-8.11.tar.gz
[apple/icu.git] / icuSources / i18n / unicode / decimfmt.h
index 4fe6d32c3be07599d7d63baab24cd502e0b9fe12..296906fb7d732b0bb4f2467914b3a86f23833622 100644 (file)
@@ -1,6 +1,6 @@
 /*
 ********************************************************************************
-*   Copyright (C) 1997-2004, International Business Machines
+*   Copyright (C) 1997-2006, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 ********************************************************************************
 *
 #define DECIMFMT_H
  
 #include "unicode/utypes.h"
-
+/**
+ * \file 
+ * \brief C++ API: Formats decimal numbers.
+ */
 #if !UCONFIG_NO_FORMATTING
 
 #include "unicode/dcfmtsym.h"
@@ -803,7 +807,7 @@ public:
      * @param pos       On input: an alignment field, if desired.
      *                  On output: the offsets of the alignment field.
      * @return          Reference to 'appendTo' parameter.
-     * @draft ICU 2.8
+     * @stable ICU 2.8
      */
     virtual UnicodeString& format(int64_t number,
                                   UnicodeString& appendTo,
@@ -877,7 +881,7 @@ public:
      * @param appendTo  Output parameter to receive result.
      *                  Result is appended to existing contents.
      * @return          Reference to 'appendTo' parameter.
-     * @draft ICU 2.8
+     * @stable ICU 2.8
      */
     UnicodeString& format(int64_t number,
                           UnicodeString& appendTo) const;
@@ -1115,7 +1119,7 @@ public:
      * The width is counted in 16-bit code units.
      * @return the format width, or zero if no padding is in effect
      * @see #setFormatWidth
-     * @see #getPadCharacter
+     * @see #getPadCharacterString
      * @see #setPadCharacter
      * @see #getPadPosition
      * @see #setPadPosition
@@ -1131,7 +1135,7 @@ public:
      * format(), or zero to disable padding.  A negative
      * width is equivalent to 0.
      * @see #getFormatWidth
-     * @see #getPadCharacter
+     * @see #getPadCharacterString
      * @see #setPadCharacter
      * @see #getPadPosition
      * @see #setPadPosition
@@ -1162,7 +1166,7 @@ public:
      * padChar.char32At(0) will be used as the pad character.
      * @see #setFormatWidth
      * @see #getFormatWidth
-     * @see #getPadCharacter
+     * @see #getPadCharacterString
      * @see #getPadPosition
      * @see #setPadPosition
      * @stable ICU 2.0
@@ -1179,7 +1183,7 @@ public:
      * @see #setFormatWidth
      * @see #getFormatWidth
      * @see #setPadCharacter
-     * @see #getPadCharacter
+     * @see #getPadCharacterString
      * @see #setPadPosition
      * @see #kPadBeforePrefix
      * @see #kPadAfterPrefix
@@ -1200,7 +1204,7 @@ public:
      * @see #setFormatWidth
      * @see #getFormatWidth
      * @see #setPadCharacter
-     * @see #getPadCharacter
+     * @see #getPadCharacterString
      * @see #getPadPosition
      * @see #kPadBeforePrefix
      * @see #kPadAfterPrefix
@@ -1536,7 +1540,7 @@ public:
      * displayed. This value has no effect unless areSignificantDigitsUsed()
      * returns true.
      * @return the fewest significant digits that will be shown
-     * @draft ICU 3.0
+     * @stable ICU 3.0
      */
     int32_t getMinimumSignificantDigits() const;
 
@@ -1545,7 +1549,7 @@ public:
      * displayed. This value has no effect unless areSignificantDigitsUsed()
      * returns true.
      * @return the most significant digits that will be shown
-     * @draft ICU 3.0
+     * @stable ICU 3.0
      */
     int32_t getMaximumSignificantDigits() const;
 
@@ -1556,7 +1560,7 @@ public:
      * <code>min</code>, then it is set to <code>min</code>. This
      * value has no effect unless areSignificantDigits() returns true.
      * @param min the fewest significant digits to be shown 
-     * @draft ICU 3.0
+     * @stable ICU 3.0
      */
     void setMinimumSignificantDigits(int32_t min);
 
@@ -1568,7 +1572,7 @@ public:
      * This value has no effect unless areSignificantDigits() returns
      * true.
      * @param max the most significant digits to be shown 
-     * @draft ICU 3.0
+     * @stable ICU 3.0
      */
     void setMaximumSignificantDigits(int32_t max);
 
@@ -1576,7 +1580,7 @@ public:
      * Returns true if significant digits are in use, or false if
      * integer and fraction digit counts are in use.
      * @return true if significant digits are in use
-     * @draft ICU 3.0
+     * @stable ICU 3.0
      */
     UBool areSignificantDigitsUsed() const;
 
@@ -1585,7 +1589,7 @@ public:
      * fraction digit counts are in use.
      * @param useSignificantDigits true to use significant digits, or
      * false to use integer and fraction digit counts
-     * @draft ICU 3.0
+     * @stable ICU 3.0
      */
     void setSignificantDigitsUsed(UBool useSignificantDigits);
 
@@ -1600,7 +1604,7 @@ public:
      * to use.  It need not be null-terminated.  May be the empty
      * string or NULL to indicate no currency.
      * @param ec input-output error code
-     * @draft ICU 3.0
+     * @stable ICU 3.0
      */
     virtual void setCurrency(const UChar* theCurrency, UErrorCode& ec);
 
@@ -1614,7 +1618,7 @@ public:
     /**
      * The resource tags we use to retrieve decimal format data from
      * locale resource bundles.
-     * @stable ICU 2.0
+     * @deprecated ICU 3.4. This string has no public purpose. Please don't use it.
      */
     static const char fgNumberPatterns[];
 
@@ -1778,8 +1782,6 @@ private:
 
     void setCurrencyForSymbols();
 
-    void setCurrencyForLocale(const char* locale, UErrorCode& ec);
-
     /**
      * Constants.
      */
@@ -1859,7 +1861,7 @@ protected:
      * this number, it wouldn't make sense anyway, and this is just to make sure
      * that someone turning on scientific mode with default settings doesn't
      * end up with lots of zeroes.
-     * @draft ICU 2.8
+     * @stable ICU 2.8
      */
     static const int32_t  kMaxScientificIntegerDigits;
 };