25 #if UCONFIG_NO_FORMATTING
41 class LocalizationInfo;
52 URBNF_NUMBERING_SYSTEM,
56 #if UCONFIG_NO_COLLATION
669 virtual int32_t getNumberOfRuleSetNames()
const;
685 virtual int32_t getNumberOfRuleSetDisplayNameLocales(
void)
const;
695 virtual Locale getRuleSetDisplayNameLocale(int32_t index,
UErrorCode& status)
const;
711 const Locale& locale = Locale::getDefault());
722 const Locale& locale = Locale::getDefault());
831 #if !UCONFIG_NO_COLLATION
944 void initDefaultRuleSet();
945 void format(
double number, NFRuleSet& ruleSet);
949 friend class NFSubstitution;
951 friend class FractionalPartSubstitution;
953 inline NFRuleSet * getDefaultRuleSet()
const;
958 NFRuleSet **ruleSets;
961 NFRuleSet *defaultRuleSet;
967 LocalizationInfo* localizations;
972 #if !UCONFIG_NO_COLLATION
975 RuleBasedNumberFormat::isLenient(
void)
const {
982 RuleBasedNumberFormat::getDefaultRuleSet()
const {
983 return defaultRuleSet;
The Collator class performs locale-sensitive string comparison.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
URBNFRuleSetTag
Tags for the predefined rulesets.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
C++ API: Collation Service.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
C++ API: Symbols for formatting numbers.
C++ API: String Enumeration.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
C++ API: Locale ID object.
A UParseError struct is used to returned detailed information about parsing errors.
Basic definitions for ICU, for both C and C++ APIs.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: Abstract base class for all number formats.
int8_t UBool
The ICU boolean type.
C++ API: Formattable is a thin wrapper for primitive types used for formatting and parsing...
A Locale object represents a specific geographical, political, or cultural region.