24#define NUMSYS_NAME_CAPACITY 8
33#if !UCONFIG_NO_FORMATTING
125#ifndef U_HIDE_DRAFT_API
175 void setRadix(int32_t radix);
177 void setAlgorithmic(
UBool algorithmic);
181 void setName(
const char* name);
185 UBool hasContiguousDecimalDigits()
const;
A Locale object represents a specific geographical, political, or cultural region.
const char * getName()
Returns the name of this numbering system if it was created using one of the predefined names known t...
NumberingSystem()
Default Constructor.
virtual UClassID getDynamicClassID() const
ICU "poor man's RTTI", returns a UClassID for the actual class.
int32_t getRadix()
Returns the radix of this numbering system.
static NumberingSystem * createInstance(UErrorCode &status)
Create the default numbering system associated with the default locale.
virtual UnicodeString getDescription()
Returns the description string of this numbering system, which is either the string of digits in the ...
NumberingSystem(const NumberingSystem &other)
Copy constructor.
static NumberingSystem * createInstance(int32_t radix, UBool isAlgorithmic, const UnicodeString &description, UErrorCode &status)
Create a numbering system using the specified radix, type, and description.
virtual ~NumberingSystem()
Destructor.
static NumberingSystem * createInstance(const Locale &inLocale, UErrorCode &status)
Create the default numbering system associated with the specified locale.
static UClassID getStaticClassID(void)
ICU "poor man's RTTI", returns a UClassID for this class.
static StringEnumeration * getAvailableNames(UErrorCode &status)
Return a StringEnumeration over all the names of numbering systems known to ICU.
static NumberingSystem * createInstanceByName(const char *name, UErrorCode &status)
Create a numbering system from one of the predefined numbering systems known to ICU.
UBool isAlgorithmic() const
Returns TRUE if the given numbering system is algorithmic.
Base class for 'pure' C++ implementations of uenum api.
UObject is the common ICU "boilerplate" class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
#define NUMSYS_NAME_CAPACITY
Size of a numbering system name.
int8_t UBool
The ICU boolean type.
C++ API: Common ICU base class UObject.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.