Movatterモバイル変換


[0]ホーム

URL:


ICU 78.2  78.2
Public Member Functions
icu::NumberFormatFactory Class Referenceabstract

ANumberFormatFactory is used to register new number formats.More...

#include <numfmt.h>

Inheritance diagram for icu::NumberFormatFactory:

Public Member Functions

virtual ~NumberFormatFactory ()
 Destructor.More...
 
virtualUBool visible () const =0
 Return true if this factory will be visible.More...
 
virtual constUnicodeStringgetSupportedIDs (int32_t &count,UErrorCode &status) const =0
 Return the locale names directly supported by this factory.More...
 
virtualNumberFormatcreateFormat (constLocale &loc,UNumberFormatStyle formatType)=0
 Return a number format of the appropriate type.More...
 
- Public Member Functions inherited fromicu::UObject
virtual ~UObject ()
 Destructor.More...
 
virtualUClassID getDynamicClassID () const
 ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.More...
 

Detailed Description

ANumberFormatFactory 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.

Stable:
ICU 2.6

Definition at line1190 of filenumfmt.h.

Constructor & Destructor Documentation

◆ ~NumberFormatFactory()

virtual icu::NumberFormatFactory::~NumberFormatFactory()
virtual

Destructor.

Stable:
ICU 3.0

Member Function Documentation

◆ createFormat()

virtualNumberFormat* icu::NumberFormatFactory::createFormat(constLocaleloc,
UNumberFormatStyle formatType 
)
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 ofNumberFormat.

Stable:
ICU 2.6

◆ getSupportedIDs()

virtual constUnicodeString* icu::NumberFormatFactory::getSupportedIDs(int32_t & count,
UErrorCodestatus 
) const
pure virtual

Return the locale names directly supported by this factory.

The number of names is returned in count;

Stable:
ICU 2.6

Implemented inicu::SimpleNumberFormatFactory.

◆ visible()

virtualUBool icu::NumberFormatFactory::visible() const
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.

Stable:
ICU 2.6

Implemented inicu::SimpleNumberFormatFactory.


The documentation for this class was generated from the following file:

Generated by doxygen 1.9.1
[8]ページ先頭

©2009-2026 Movatter.jp