A NumberFormatter that does not yet have a locale. More...
#include <numberformatter.h>
Public Member Functions | |
| LocalizedNumberFormatter | locale (const icu::Locale &locale) const |
| Associate the given locale with the number formatter. | |
| UnlocalizedNumberFormatter (const UnlocalizedNumberFormatter &other) | |
| Returns a copy of this UnlocalizedNumberFormatter. | |
Friends | |
| class | NumberFormatterSettings< UnlocalizedNumberFormatter > |
| class | NumberFormatter |
A NumberFormatter that does not yet have a locale.
In order to format numbers, a locale must be specified.
Definition at line 1731 of file numberformatter.h.
| icu::number::UnlocalizedNumberFormatter::UnlocalizedNumberFormatter | ( | const UnlocalizedNumberFormatter & | other | ) | [inline] |
Returns a copy of this UnlocalizedNumberFormatter.
Definition at line 1758 of file numberformatter.h.
| LocalizedNumberFormatter icu::number::UnlocalizedNumberFormatter::locale | ( | const icu::Locale & | locale | ) | const |
Associate the given locale with the number formatter.
The locale is used for picking the appropriate symbols, formats, and other data for number display.
To use the Java default locale, call Locale::getDefault():
NumberFormatter::with(). ... .locale(Locale::getDefault())
| locale | The locale to use when loading data for number formatting. |
1.6.1