Logo Search packages:      
Sourcecode: icu version File versions

NumberingSystem Class Reference

#include <numsys.h>

Inheritance diagram for NumberingSystem:

UObject UMemory

List of all members.

Detailed Description

Defines numbering systems. A numbering system describes the scheme by which numbers are to be presented to the end user. In its simplest form, a numbering system describes the set of digit characters that are to be used to display numbers, such as Western digits, Thai digits, Arabic-Indic digits, etc. More complicated numbering systems are algorithmic in nature, and require use of an RBNF formatter ( rule based number formatter ), in order to calculate the characters to be displayed for a given number. Examples of algorithmic numbering systems include Roman numerals, Chinese numerals, and Hebrew numerals. Formatting rules for many commonly used numbering systems are included in the ICU package, based on the numbering system rules defined in CLDR. Alternate numbering systems can be specified to a locale by using the numbers locale keyword.

Definition at line 49 of file numsys.h.

Public Member Functions

virtual UnicodeString getDescription ()
virtual UClassID getDynamicClassID () const
int32_t getRadix ()
UBool isAlgorithmic () const
 NumberingSystem (const NumberingSystem &other)
 NumberingSystem ()
virtual ~NumberingSystem ()

Static Public Member Functions

static NumberingSystem *U_EXPORT2 createInstance (int32_t radix, UBool isAlgorithmic, const UnicodeString &description, UErrorCode &status)
static NumberingSystem *U_EXPORT2 createInstance (UErrorCode &status)
static NumberingSystem *U_EXPORT2 createInstance (const Locale &inLocale, UErrorCode &status)
static NumberingSystem *U_EXPORT2 createInstanceByName (const char *name, UErrorCode &status)
static StringEnumeration *U_EXPORT2 getAvailableNames (UErrorCode &status)
static UClassID U_EXPORT2 getStaticClassID (void)
static void U_EXPORT2 operator delete (void *, void *) U_NO_THROW
static void U_EXPORT2 operator delete (void *p) U_NO_THROW
static void U_EXPORT2 operator delete[] (void *p) U_NO_THROW
static void *U_EXPORT2 operator new (size_t, void *ptr) U_NO_THROW
static void *U_EXPORT2 operator new (size_t size) U_NO_THROW
static void *U_EXPORT2 operator new[] (size_t size) U_NO_THROW

Private Member Functions

UBool hasContiguousDecimalDigits () const
void setAlgorithmic (UBool algorithmic)
void setDesc (UnicodeString desc)
void setRadix (int32_t radix)

Static Private Member Functions

static UBool isValidDigitString (const UnicodeString &str)

Private Attributes

UBool algorithmic
UnicodeString desc
int32_t radix

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

Generated by  Doxygen 1.6.0   Back to index