class NumberFormatFactory

Defined at line 1190 of file ../../third_party/icu/latest/source/i18n/unicode/numfmt.h

A NumberFormatFactory is used to register new number formats. The factory

should be able to create any of the predefined formats for each locale it

supports. When registered, the locales it supports extend or override the

locale already supported by ICU.

ICU 2.6

Public Methods

void ~NumberFormatFactory ()

Destructor

ICU 3.0

UBool visible ()

Return true if this factory will be visible. Default is true.

If not visible, the locales supported by this factory will not

be listed by getAvailableLocales.

ICU 2.6

const UnicodeString * getSupportedIDs (int32_t & count, UErrorCode & status)

Return the locale names directly supported by this factory. The number of names

is returned in count;

ICU 2.6

NumberFormat * createFormat (const Locale & loc, UNumberFormatStyle formatType)

Return a number format of the appropriate type. If the locale

is not supported, return null. If the locale is supported, but

the type is not provided by this service, return null. Otherwise

return an appropriate instance of NumberFormat.

ICU 2.6