32 #if U_SHOW_CPLUSPLUS_API 34 #if !UCONFIG_NO_FORMATTING 173 kFormatSymbolCount = kNineDigitSymbol + 2
298 inline Locale getLocale()
const;
324 UBool beforeCurrency,
337 UBool beforeCurrency,
352 static UClassID U_EXPORT2 getStaticClassID();
377 void setCurrencyForSymbols();
381 #ifndef U_HIDE_INTERNAL_API 386 return fIsCustomCurrencySymbol;
393 return fIsCustomIntlCurrencySymbol;
400 return fCodePointZero;
421 #ifndef U_HIDE_INTERNAL_API 437 inline const UnicodeString& getConstDigitSymbol(int32_t digit)
const;
443 inline const char16_t* getCurrencyPattern(
void)
const;
488 const char16_t* currPattern;
492 UBool fIsCustomCurrencySymbol;
493 UBool fIsCustomIntlCurrencySymbol;
501 if(symbol < kFormatSymbolCount) {
502 strPtr = &fSymbols[symbol];
513 if(symbol < kFormatSymbolCount) {
514 strPtr = &fSymbols[symbol];
521 #ifndef U_HIDE_INTERNAL_API 523 if (digit < 0 || digit > 9) {
527 return fSymbols[kZeroDigitSymbol];
530 return fSymbols[key];
538 if (symbol == kCurrencySymbol) {
539 fIsCustomCurrencySymbol =
TRUE;
541 else if (symbol == kIntlCurrencySymbol) {
542 fIsCustomIntlCurrencySymbol =
TRUE;
544 if(symbol<kFormatSymbolCount) {
545 fSymbols[symbol]=value;
551 if (symbol == kZeroDigitSymbol) {
554 fCodePointZero = sym;
555 for ( int8_t i = 1 ; i<= 9 ; i++ ) {
562 }
else if (symbol >= kOneDigitSymbol && symbol <= kNineDigitSymbol) {
574 #ifndef U_HIDE_INTERNAL_API 575 inline const char16_t*
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
Defines numbering systems.
UCurrencySpacing
Constants for specifying currency spacing.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
int32_t u_charDigitValue(UChar32 c)
Returns the decimal digit value of a decimal digit character.
#define ULOC_FULLNAME_CAPACITY
Useful constant for the maximum size of the whole locale ID (including the terminating NULL and all k...
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
#define TRUE
The TRUE value of a UBool.
C++ API: NumberingSystem object.
C API: Unicode Properties.
C++ API: Common ICU base class UObject.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
ULocDataLocaleType
Constants for *_getLocale() Allow user to select whether she wants information on requested...
int32_t countChar32(int32_t start=0, int32_t length=INT32_MAX) const
Count Unicode code points in the length char16_t code units of the string.
C++ API: Locale ID object.
Basic definitions for ICU, for both C and C++ APIs.
#define FALSE
The FALSE value of a UBool.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UObject is the common ICU "boilerplate" class.
One more than the highest normal UCurrencySpacing value.
UChar32 char32At(int32_t offset) const
Return the code point that contains the code unit at offset offset.
int8_t UBool
The ICU boolean type.
C API: Compatibility APIs for number formatting.
A Locale object represents a specific geographical, political, or cultural region.