Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

NumberFormatFactory Class Reference

A NumberFormatFactory is used to register new number formats. More...

#include <numfmt.h>

Inheritance diagram for NumberFormatFactory::

UObject UMemory SimpleNumberFormatFactory List of all members.

Public Methods

virtual UBool visible (void) const=0
 Return true if this factory will be visible. More...

virtual const UnicodeStringgetSupportedIDs (int32_t &count, UErrorCode &status) const=0
 Return the locale names directly supported by this factory. More...

virtual NumberFormatcreateFormat (const Locale &loc, UNumberFormatStyle formatType)=0
 Return a number format of the appropriate type. More...


Detailed Description

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.

@prototype

Definition at line 732 of file numfmt.h.


Member Function Documentation

virtual NumberFormat* NumberFormatFactory::createFormat const Locale   loc,
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 of NumberFormat.

Draft:
This API has been introduced in ICU 2.6. It is still in draft state and may be modified in a future release.

virtual const UnicodeString* NumberFormatFactory::getSupportedIDs int32_t &    count,
UErrorCode   status
const [pure virtual]
 

Return the locale names directly supported by this factory.

The number of names is returned in count;

Draft:
This API has been introduced in ICU 2.6. It is still in draft state and may be modified in a future release.

Reimplemented in SimpleNumberFormatFactory.

virtual UBool NumberFormatFactory::visible void    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.

Draft:
This API has been introduced in ICU 2.6. It is still in draft state and may be modified in a future release.

Reimplemented in SimpleNumberFormatFactory.


The documentation for this class was generated from the following file:
Generated on Mon Nov 24 14:36:41 2003 for ICU 2.8 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001