A NumberFormatter that has a locale associated with it; this means .format() methods are available. More...
#include <numberformatter.h>
Public Member Functions | |
| FormattedNumber | formatInt (int64_t value, UErrorCode &status) const |
| Format the given integer number to a string using the settings specified in the NumberFormatter fluent setting chain. | |
| FormattedNumber | formatDouble (double value, UErrorCode &status) const |
| Format the given float or double to a string using the settings specified in the NumberFormatter fluent setting chain. | |
| FormattedNumber | formatDecimal (StringPiece value, UErrorCode &status) const |
| Format the given decimal number to a string using the settings specified in the NumberFormatter fluent setting chain. | |
| LocalizedNumberFormatter (const LocalizedNumberFormatter &other) | |
| Returns a copy of this LocalizedNumberFormatter. | |
| ~LocalizedNumberFormatter () | |
| Destruct this LocalizedNumberFormatter, cleaning up any memory it might own. | |
Friends | |
| class | NumberFormatterSettings< UnlocalizedNumberFormatter > |
| class | NumberFormatterSettings< LocalizedNumberFormatter > |
| class | UnlocalizedNumberFormatter |
A NumberFormatter that has a locale associated with it; this means .format() methods are available.
Definition at line 1780 of file numberformatter.h.
| icu::number::LocalizedNumberFormatter::LocalizedNumberFormatter | ( | const LocalizedNumberFormatter & | other | ) | [inline] |
Returns a copy of this LocalizedNumberFormatter.
Definition at line 1830 of file numberformatter.h.
| icu::number::LocalizedNumberFormatter::~LocalizedNumberFormatter | ( | ) |
Destruct this LocalizedNumberFormatter, cleaning up any memory it might own.
| FormattedNumber icu::number::LocalizedNumberFormatter::formatDecimal | ( | StringPiece | value, | |
| UErrorCode & | status | |||
| ) | const |
Format the given decimal number to a string using the settings specified in the NumberFormatter fluent setting chain.
The syntax of the unformatted number is a "numeric string" as defined in the Decimal Arithmetic Specification, available at http://speleotrove.com/decimal
| value | The number to format. | |
| status | Set to an ErrorCode if one occurred in the setter chain or during formatting. |
| FormattedNumber icu::number::LocalizedNumberFormatter::formatDouble | ( | double | value, | |
| UErrorCode & | status | |||
| ) | const |
Format the given float or double to a string using the settings specified in the NumberFormatter fluent setting chain.
| value | The number to format. | |
| status | Set to an ErrorCode if one occurred in the setter chain or during formatting. |
| FormattedNumber icu::number::LocalizedNumberFormatter::formatInt | ( | int64_t | value, | |
| UErrorCode & | status | |||
| ) | const |
Format the given integer number to a string using the settings specified in the NumberFormatter fluent setting chain.
| value | The number to format. | |
| status | Set to an ErrorCode if one occurred in the setter chain or during formatting. |
1.6.1