|
| | CompactDecimalFormat (const CompactDecimalFormat &source) |
| | Copy constructor. More...
|
| |
| virtual | ~CompactDecimalFormat () |
| | Destructor. More...
|
| |
| CompactDecimalFormat & | operator= (const CompactDecimalFormat &rhs) |
| | Assignment operator. More...
|
| |
| virtual Format * | clone () const |
| | Clone this Format object polymorphically. More...
|
| |
| virtual UBool | operator== (const Format &other) const |
| | Return TRUE if the given Format objects are semantically equal. More...
|
| |
| virtual UnicodeString & | format (double number, UnicodeString &appendTo, FieldPosition &pos) const |
| | Format a double or long number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (double number, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const |
| | Format a double or long number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (double number, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format a double or long number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (int32_t number, UnicodeString &appendTo, FieldPosition &pos) const |
| | Format a long number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (int32_t number, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const |
| | Format a long number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (int32_t number, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format a long number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (int64_t number, UnicodeString &appendTo, FieldPosition &pos) const |
| | Format an int64 number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (int64_t number, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const |
| | Format an int64 number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (int64_t number, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format an int64 number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (StringPiece number, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format a decimal number. More...
|
| |
| virtual UnicodeString & | format (const DigitList &number, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format a decimal number. More...
|
| |
| virtual UnicodeString & | format (const DigitList &number, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const |
| | Format a decimal number. More...
|
| |
| virtual void | parse (const UnicodeString &text, Formattable &result, ParsePosition &parsePosition) const |
| | CompactDecimalFormat does not support parsing. More...
|
| |
| virtual void | parse (const UnicodeString &text, Formattable &result, UErrorCode &status) const |
| | CompactDecimalFormat does not support parsing. More...
|
| |
| virtual CurrencyAmount * | parseCurrency (const UnicodeString &text, ParsePosition &pos) const |
| | Parses text from the given string as a currency amount. More...
|
| |
| virtual UClassID | getDynamicClassID () const |
| | Returns a unique class ID POLYMORPHICALLY. More...
|
| |
| virtual UnicodeString & | format (double number, UnicodeString &appendTo, FieldPosition &pos) const |
| | Format a double or long number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (double number, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const |
| | Format a double or long number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (double number, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format a double or long number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (int32_t number, UnicodeString &appendTo, FieldPosition &pos) const |
| | Format a long number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (int32_t number, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const |
| | Format a long number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (int32_t number, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format a long number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (int64_t number, UnicodeString &appendTo, FieldPosition &pos) const |
| | Format an int64 number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (int64_t number, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const |
| | Format an int64 number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (int64_t number, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format an int64 number using base-10 representation. More...
|
| |
| virtual UnicodeString & | format (StringPiece number, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format a decimal number. More...
|
| |
| virtual UnicodeString & | format (const DigitList &number, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format a decimal number. More...
|
| |
| virtual UnicodeString & | format (const VisibleDigitsWithExponent &number, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const |
| | Format a decimal number. More...
|
| |
| virtual UnicodeString & | format (const VisibleDigitsWithExponent &number, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format a decimal number. More...
|
| |
| virtual UnicodeString & | format (const DigitList &number, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const |
| | Format a decimal number. More...
|
| |
| | DecimalFormat (UErrorCode &status) |
| | Create a DecimalFormat using the default pattern and symbols for the default locale. More...
|
| |
| | DecimalFormat (const UnicodeString &pattern, UErrorCode &status) |
| | Create a DecimalFormat from the given pattern and the symbols for the default locale. More...
|
| |
| | DecimalFormat (const UnicodeString &pattern, DecimalFormatSymbols *symbolsToAdopt, UErrorCode &status) |
| | Create a DecimalFormat from the given pattern and symbols. More...
|
| |
| | DecimalFormat (const UnicodeString &pattern, DecimalFormatSymbols *symbolsToAdopt, UNumberFormatStyle style, UErrorCode &status) |
| | This API is for ICU use only. More...
|
| |
| virtual DecimalFormat & | setAttribute (UNumberFormatAttribute attr, int32_t newvalue, UErrorCode &status) |
| | Set an integer attribute on this DecimalFormat. More...
|
| |
| virtual int32_t | getAttribute (UNumberFormatAttribute attr, UErrorCode &status) const |
| | Get an integer May return U_UNSUPPORTED_ERROR if this instance does not support the specified attribute. More...
|
| |
| virtual void | setGroupingUsed (UBool newValue) |
| | Set whether or not grouping will be used in this format. More...
|
| |
| virtual void | setParseIntegerOnly (UBool value) |
| | Sets whether or not numbers should be parsed as integers only. More...
|
| |
| virtual void | setContext (UDisplayContext value, UErrorCode &status) |
| | Set a particular UDisplayContext value in the formatter, such as UDISPCTX_CAPITALIZATION_FOR_STANDALONE. More...
|
| |
| | DecimalFormat (const UnicodeString &pattern, DecimalFormatSymbols *symbolsToAdopt, UParseError &parseError, UErrorCode &status) |
| | Create a DecimalFormat from the given pattern and symbols. More...
|
| |
| | DecimalFormat (const UnicodeString &pattern, const DecimalFormatSymbols &symbols, UErrorCode &status) |
| | Create a DecimalFormat from the given pattern and symbols. More...
|
| |
| | DecimalFormat (const DecimalFormat &source) |
| | Copy constructor. More...
|
| |
| DecimalFormat & | operator= (const DecimalFormat &rhs) |
| | Assignment operator. More...
|
| |
| virtual | ~DecimalFormat () |
| | Destructor. More...
|
| |
| virtual UnicodeString & | format (const VisibleDigitsWithExponent &number, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const |
| | Format a decimal number. More...
|
| |
| virtual UnicodeString & | format (const VisibleDigitsWithExponent &number, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format a decimal number. More...
|
| |
| virtual const DecimalFormatSymbols * | getDecimalFormatSymbols (void) const |
| | Returns the decimal format symbols, which is generally not changed by the programmer or user. More...
|
| |
| virtual void | adoptDecimalFormatSymbols (DecimalFormatSymbols *symbolsToAdopt) |
| | Sets the decimal format symbols, which is generally not changed by the programmer or user. More...
|
| |
| virtual void | setDecimalFormatSymbols (const DecimalFormatSymbols &symbols) |
| | Sets the decimal format symbols, which is generally not changed by the programmer or user. More...
|
| |
| virtual const CurrencyPluralInfo * | getCurrencyPluralInfo (void) const |
| | Returns the currency plural format information, which is generally not changed by the programmer or user. More...
|
| |
| virtual void | adoptCurrencyPluralInfo (CurrencyPluralInfo *toAdopt) |
| | Sets the currency plural format information, which is generally not changed by the programmer or user. More...
|
| |
| virtual void | setCurrencyPluralInfo (const CurrencyPluralInfo &info) |
| | Sets the currency plural format information, which is generally not changed by the programmer or user. More...
|
| |
| UnicodeString & | getPositivePrefix (UnicodeString &result) const |
| | Get the positive prefix. More...
|
| |
| virtual void | setPositivePrefix (const UnicodeString &newValue) |
| | Set the positive prefix. More...
|
| |
| UnicodeString & | getNegativePrefix (UnicodeString &result) const |
| | Get the negative prefix. More...
|
| |
| virtual void | setNegativePrefix (const UnicodeString &newValue) |
| | Set the negative prefix. More...
|
| |
| UnicodeString & | getPositiveSuffix (UnicodeString &result) const |
| | Get the positive suffix. More...
|
| |
| virtual void | setPositiveSuffix (const UnicodeString &newValue) |
| | Set the positive suffix. More...
|
| |
| UnicodeString & | getNegativeSuffix (UnicodeString &result) const |
| | Get the negative suffix. More...
|
| |
| virtual void | setNegativeSuffix (const UnicodeString &newValue) |
| | Set the negative suffix. More...
|
| |
| int32_t | getMultiplier (void) const |
| | Get the multiplier for use in percent, permill, etc. More...
|
| |
| virtual void | setMultiplier (int32_t newValue) |
| | Set the multiplier for use in percent, permill, etc. More...
|
| |
| virtual double | getRoundingIncrement (void) const |
| | Get the rounding increment. More...
|
| |
| virtual void | setRoundingIncrement (double newValue) |
| | Set the rounding increment. More...
|
| |
| virtual ERoundingMode | getRoundingMode (void) const |
| | Get the rounding mode. More...
|
| |
| virtual void | setRoundingMode (ERoundingMode roundingMode) |
| | Set the rounding mode. More...
|
| |
| virtual int32_t | getFormatWidth (void) const |
| | Get the width to which the output of format() is padded. More...
|
| |
| virtual void | setFormatWidth (int32_t width) |
| | Set the width to which the output of format() is padded. More...
|
| |
| virtual UnicodeString | getPadCharacterString () const |
| | Get the pad character used to pad to the format width. More...
|
| |
| virtual void | setPadCharacter (const UnicodeString &padChar) |
| | Set the character used to pad to the format width. More...
|
| |
| virtual EPadPosition | getPadPosition (void) const |
| | Get the position at which padding will take place. More...
|
| |
| virtual void | setPadPosition (EPadPosition padPos) |
| | Set the position at which padding will take place. More...
|
| |
| virtual UBool | isScientificNotation (void) const |
| | Return whether or not scientific notation is used. More...
|
| |
| virtual void | setScientificNotation (UBool useScientific) |
| | Set whether or not scientific notation is used. More...
|
| |
| virtual int8_t | getMinimumExponentDigits (void) const |
| | Return the minimum exponent digits that will be shown. More...
|
| |
| virtual void | setMinimumExponentDigits (int8_t minExpDig) |
| | Set the minimum exponent digits that will be shown. More...
|
| |
| virtual UBool | isExponentSignAlwaysShown (void) const |
| | Return whether the exponent sign is always shown. More...
|
| |
| virtual void | setExponentSignAlwaysShown (UBool expSignAlways) |
| | Set whether the exponent sign is always shown. More...
|
| |
| int32_t | getGroupingSize (void) const |
| | Return the grouping size. More...
|
| |
| virtual void | setGroupingSize (int32_t newValue) |
| | Set the grouping size. More...
|
| |
| int32_t | getSecondaryGroupingSize (void) const |
| | Return the secondary grouping size. More...
|
| |
| virtual void | setSecondaryGroupingSize (int32_t newValue) |
| | Set the secondary grouping size. More...
|
| |
| int32_t | getMinimumGroupingDigits () const |
| | Returns the minimum number of grouping digits. More...
|
| |
| virtual void | setMinimumGroupingDigits (int32_t newValue) |
| | Sets the minimum grouping digits. More...
|
| |
| UBool | isDecimalSeparatorAlwaysShown (void) const |
| | Allows you to get the behavior of the decimal separator with integers. More...
|
| |
| virtual void | setDecimalSeparatorAlwaysShown (UBool newValue) |
| | Allows you to set the behavior of the decimal separator with integers. More...
|
| |
| UBool | isDecimalPatternMatchRequired (void) const |
| | Allows you to get the parse behavior of the pattern decimal mark. More...
|
| |
| virtual void | setDecimalPatternMatchRequired (UBool newValue) |
| | Allows you to set the behavior of the pattern decimal mark. More...
|
| |
| virtual UnicodeString & | toPattern (UnicodeString &result) const |
| | Synthesizes a pattern string that represents the current state of this Format object. More...
|
| |
| virtual UnicodeString & | toLocalizedPattern (UnicodeString &result) const |
| | Synthesizes a localized pattern string that represents the current state of this Format object. More...
|
| |
| virtual void | applyPattern (const UnicodeString &pattern, UParseError &parseError, UErrorCode &status) |
| | Apply the given pattern to this Format object. More...
|
| |
| virtual void | applyPattern (const UnicodeString &pattern, UErrorCode &status) |
| | Sets the pattern. More...
|
| |
| virtual void | applyLocalizedPattern (const UnicodeString &pattern, UParseError &parseError, UErrorCode &status) |
| | Apply the given pattern to this Format object. More...
|
| |
| virtual void | applyLocalizedPattern (const UnicodeString &pattern, UErrorCode &status) |
| | Apply the given pattern to this Format object. More...
|
| |
| virtual void | setMaximumIntegerDigits (int32_t newValue) |
| | Sets the maximum number of digits allowed in the integer portion of a number. More...
|
| |
| virtual void | setMinimumIntegerDigits (int32_t newValue) |
| | Sets the minimum number of digits allowed in the integer portion of a number. More...
|
| |
| virtual void | setMaximumFractionDigits (int32_t newValue) |
| | Sets the maximum number of digits allowed in the fraction portion of a number. More...
|
| |
| virtual void | setMinimumFractionDigits (int32_t newValue) |
| | Sets the minimum number of digits allowed in the fraction portion of a number. More...
|
| |
| int32_t | getMinimumSignificantDigits () const |
| | Returns the minimum number of significant digits that will be displayed. More...
|
| |
| int32_t | getMaximumSignificantDigits () const |
| | Returns the maximum number of significant digits that will be displayed. More...
|
| |
| void | setMinimumSignificantDigits (int32_t min) |
| | Sets the minimum number of significant digits that will be displayed. More...
|
| |
| void | setMaximumSignificantDigits (int32_t max) |
| | Sets the maximum number of significant digits that will be displayed. More...
|
| |
| UBool | areSignificantDigitsUsed () const |
| | Returns true if significant digits are in use, or false if integer and fraction digit counts are in use. More...
|
| |
| void | setSignificantDigitsUsed (UBool useSignificantDigits) |
| | Sets whether significant digits are in use, or integer and fraction digit counts are in use. More...
|
| |
| virtual void | setCurrency (const char16_t *theCurrency, UErrorCode &ec) |
| | Sets the currency used to display currency amounts. More...
|
| |
| virtual void | setCurrency (const char16_t *theCurrency) |
| | Sets the currency used to display currency amounts. More...
|
| |
| void | setCurrencyUsage (UCurrencyUsage newUsage, UErrorCode *ec) |
| | Sets the Currency Context object used to display currency. More...
|
| |
| UCurrencyUsage | getCurrencyUsage () const |
| | Returns the Currency Context object used to display currency. More...
|
| |
| FixedDecimal | getFixedDecimal (double number, UErrorCode &status) const |
| | Get a FixedDecimal corresponding to a double as it would be formatted by this DecimalFormat. More...
|
| |
| FixedDecimal | getFixedDecimal (const Formattable &number, UErrorCode &status) const |
| | Get a FixedDecimal corresponding to a formattable as it would be formatted by this DecimalFormat. More...
|
| |
| FixedDecimal | getFixedDecimal (DigitList &number, UErrorCode &status) const |
| | Get a FixedDecimal corresponding to a DigitList as it would be formatted by this DecimalFormat. More...
|
| |
| VisibleDigitsWithExponent & | initVisibleDigitsWithExponent (double number, VisibleDigitsWithExponent &digits, UErrorCode &status) const |
| | Get a VisibleDigitsWithExponent corresponding to a double as it would be formatted by this DecimalFormat. More...
|
| |
| VisibleDigitsWithExponent & | initVisibleDigitsWithExponent (const Formattable &number, VisibleDigitsWithExponent &digits, UErrorCode &status) const |
| | Get a VisibleDigitsWithExponent corresponding to a formattable as it would be formatted by this DecimalFormat. More...
|
| |
| VisibleDigitsWithExponent & | initVisibleDigitsWithExponent (DigitList &number, VisibleDigitsWithExponent &digits, UErrorCode &status) const |
| | Get a VisibleDigitsWithExponent corresponding to a DigitList as it would be formatted by this DecimalFormat. More...
|
| |
| virtual UnicodeString & | format (const Formattable &obj, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const |
| | Format an object to produce a string. More...
|
| |
| virtual UnicodeString & | format (const Formattable &obj, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format an object to produce a string. More...
|
| |
| UnicodeString & | format (double number, UnicodeString &appendTo) const |
| | Format a double number. More...
|
| |
| UnicodeString & | format (int32_t number, UnicodeString &appendTo) const |
| | Format a long number. More...
|
| |
| UnicodeString & | format (int64_t number, UnicodeString &appendTo) const |
| | Format an int64 number. More...
|
| |
| virtual UnicodeString & | format (double number, UnicodeString &appendTo, FieldPosition &pos) const=0 |
| | Format a double number. More...
|
| |
| virtual UnicodeString & | format (double number, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const |
| | Format a double number. More...
|
| |
| virtual UnicodeString & | format (double number, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format a double number. More...
|
| |
| virtual UnicodeString & | format (int32_t number, UnicodeString &appendTo, FieldPosition &pos) const=0 |
| | Format a long number. More...
|
| |
| virtual UnicodeString & | format (int32_t number, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const |
| | Format a long number. More...
|
| |
| virtual UnicodeString & | format (int32_t number, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format an int32 number. More...
|
| |
| virtual UnicodeString & | format (int64_t number, UnicodeString &appendTo, FieldPosition &pos) const |
| | Format an int64 number. More...
|
| |
| virtual UnicodeString & | format (int64_t number, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const |
| | Format an int64 number. More...
|
| |
| virtual UnicodeString & | format (int64_t number, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format an int64 number. More...
|
| |
| virtual UnicodeString & | format (StringPiece number, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format a decimal number. More...
|
| |
| virtual UnicodeString & | format (const DigitList &number, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format a decimal number. More...
|
| |
| virtual UnicodeString & | format (const DigitList &number, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const |
| | Format a decimal number. More...
|
| |
| virtual void | parse (const UnicodeString &text, Formattable &result, ParsePosition &parsePosition) const=0 |
| | Return a long if possible (e.g. More...
|
| |
| virtual void | parse (const UnicodeString &text, Formattable &result, UErrorCode &status) const |
| | Parse a string as a numeric value, and return a Formattable numeric object. More...
|
| |
| virtual | ~NumberFormat () |
| | Destructor. More...
|
| |
| virtual UnicodeString & | format (const Formattable &obj, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const |
| | Format an object to produce a string. More...
|
| |
| virtual UnicodeString & | format (const Formattable &obj, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format an object to produce a string. More...
|
| |
| virtual void | parseObject (const UnicodeString &source, Formattable &result, ParsePosition &parse_pos) const |
| | Parse a string to produce an object. More...
|
| |
| UnicodeString & | format (double number, UnicodeString &appendTo) const |
| | Format a double number. More...
|
| |
| UnicodeString & | format (int32_t number, UnicodeString &appendTo) const |
| | Format a long number. More...
|
| |
| UnicodeString & | format (int64_t number, UnicodeString &appendTo) const |
| | Format an int64 number. More...
|
| |
| UBool | isParseIntegerOnly (void) const |
| | Return true if this format will parse numbers as integers only. More...
|
| |
| virtual void | setLenient (UBool enable) |
| | Sets whether lenient parsing should be enabled (it is off by default). More...
|
| |
| virtual UBool | isLenient (void) const |
| | Returns whether lenient parsing is enabled (it is off by default). More...
|
| |
| UBool | isGroupingUsed (void) const |
| | Returns true if grouping is used in this format. More...
|
| |
| int32_t | getMaximumIntegerDigits (void) const |
| | Returns the maximum number of digits allowed in the integer portion of a number. More...
|
| |
| int32_t | getMinimumIntegerDigits (void) const |
| | Returns the minimum number of digits allowed in the integer portion of a number. More...
|
| |
| int32_t | getMaximumFractionDigits (void) const |
| | Returns the maximum number of digits allowed in the fraction portion of a number. More...
|
| |
| int32_t | getMinimumFractionDigits (void) const |
| | Returns the minimum number of digits allowed in the fraction portion of a number. More...
|
| |
| const char16_t * | getCurrency () const |
| | Gets the currency used to display currency amounts. More...
|
| |
| virtual UDisplayContext | getContext (UDisplayContextType type, UErrorCode &status) const |
| | Get the formatter's UDisplayContext value for the specified UDisplayContextType, such as UDISPCTX_TYPE_CAPITALIZATION. More...
|
| |
| UnicodeString & | format (const Formattable &obj, UnicodeString &appendTo, UErrorCode &status) const |
| | Formats an object to produce a string. More...
|
| |
| virtual UnicodeString & | format (const Formattable &obj, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const=0 |
| | Format an object to produce a string. More...
|
| |
| virtual UnicodeString & | format (const Formattable &obj, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const |
| | Format an object to produce a string. More...
|
| |
| virtual | ~Format () |
| | Destructor. More...
|
| |
| UBool | operator!= (const Format &other) const |
| | Return true if the given Format objects are not semantically equal. More...
|
| |
| UnicodeString & | format (const Formattable &obj, UnicodeString &appendTo, UErrorCode &status) const |
| | Formats an object to produce a string. More...
|
| |
| void | parseObject (const UnicodeString &source, Formattable &result, UErrorCode &status) const |
| | Parses a string to produce an object. More...
|
| |
| Locale | getLocale (ULocDataLocaleType type, UErrorCode &status) const |
| | Get the locale for this format object. More...
|
| |
| const char * | getLocaleID (ULocDataLocaleType type, UErrorCode &status) const |
| | Get the locale for this format object. More...
|
| |
| virtual | ~UObject () |
| | Destructor. More...
|
| |
The CompactDecimalFormat produces abbreviated numbers, suitable for display in environments will limited real estate.
For example, 'Hits: 1.2B' instead of 'Hits: 1,200,000,000'. The format will be appropriate for the given language, such as "1,2 Mrd." for German.
For numbers under 1000 trillion (under 10^15, such as 123,456,789,012,345), the result will be short for supported languages. However, the result may sometimes exceed 7 characters, such as when there are combining marks or thin characters. In such cases, the visual width in fonts should still be short.
By default, there are 3 significant digits. After creation, if more than three significant digits are set (with setMaximumSignificantDigits), or if a fixed number of digits are set (with setMaximumIntegerDigits or setMaximumFractionDigits), then result may be wider.
At this time, parsing is not supported, and will produce a U_UNSUPPORTED_ERROR. Resetting the pattern prefixes or suffixes is not supported; the method calls are ignored.
- Stable:
- ICU 51
Definition at line 54 of file compactdecimalformat.h.