Go to the documentation of this file.
23 #if U_SHOW_CPLUSPLUS_API
30 #if !UCONFIG_NO_FORMATTING
198 void setRadix(int32_t radix);
200 void setAlgorithmic(
UBool algorithmic);
204 void setName(
const char* name);
208 UBool hasContiguousDecimalDigits()
const;
Basic definitions for ICU, for both C and C++ APIs.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
int8_t UBool
The ICU boolean type.
static NumberingSystem * createInstance(UErrorCode &status)
Create the default numbering system associated with the default locale.
virtual UnicodeString getDescription() const
Returns the description string of this numbering system.
UBool isAlgorithmic() const
Returns TRUE if the given numbering system is algorithmic.
static StringEnumeration * getAvailableNames(UErrorCode &status)
Return a StringEnumeration over all the names of numbering systems known to ICU.
NumberingSystem()
Default Constructor.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UObject is the common ICU "boilerplate" class.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Base class for 'pure' C++ implementations of uenum api.
NumberingSystem(const NumberingSystem &other)
Copy constructor.
static NumberingSystem * createInstance(const Locale &inLocale, UErrorCode &status)
Create the default numbering system associated with the specified locale.
virtual UClassID getDynamicClassID() const
ICU "poor man's RTTI", returns a UClassID for the actual class.
static NumberingSystem * createInstance(int32_t radix, UBool isAlgorithmic, const UnicodeString &description, UErrorCode &status)
Create a numbering system using the specified radix, type, and description.
int32_t getRadix() const
Returns the radix of this numbering system.
Defines numbering systems.
const char * getName() const
Returns the name of this numbering system if it was created using one of the predefined names known t...
static NumberingSystem * createInstanceByName(const char *name, UErrorCode &status)
Create a numbering system from one of the predefined numbering systems specified by CLDR and known to...
C++ API: Common ICU base class UObject.
A Locale object represents a specific geographical, political, or cultural region.
virtual ~NumberingSystem()
Destructor.
constexpr const size_t kInternalNumSysNameCapacity
Size of a numbering system name.
static UClassID getStaticClassID(void)
ICU "poor man's RTTI", returns a UClassID for this class.