ICU 4.8.1.1
4.8.1.1
|
A NumberFormatFactory is used to register new number formats. More...
#include <numfmt.h>
Public Member Functions | |
virtual | ~NumberFormatFactory () |
Destructor. More... | |
virtual UBool | visible (void) const =0 |
Return true if this factory will be visible. More... | |
virtual const UnicodeString * | getSupportedIDs (int32_t &count, UErrorCode &status) const =0 |
Return the locale names directly supported by this factory. More... | |
virtual NumberFormat * | createFormat (const Locale &loc, UNumberFormatStyle formatType)=0 |
Return a number format of the appropriate type. More... | |
![]() | |
virtual | ~UObject () |
Destructor. More... | |
virtual UClassID | getDynamicClassID () const =0 |
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. More... | |
Additional Inherited Members | |
![]() | |
static void * | operator new (size_t size) |
Override for ICU4C C++ memory management. More... | |
static void * | operator new[] (size_t size) |
Override for ICU4C C++ memory management. More... | |
static void | operator delete (void *p) |
Override for ICU4C C++ memory management. More... | |
static void | operator delete[] (void *p) |
Override for ICU4C C++ memory management. More... | |
static void * | operator new (size_t, void *ptr) |
Override for ICU4C C++ memory management for STL. More... | |
static void | operator delete (void *, void *) |
Override for ICU4C C++ memory management for STL. More... | |
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.
|
virtual |
Destructor.
|
pure virtual |
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.
|
pure virtual |
Return the locale names directly supported by this factory.
The number of names is returned in count;
Implemented in SimpleNumberFormatFactory.
|
pure virtual |
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.
Implemented in SimpleNumberFormatFactory.