27 #if UCONFIG_NO_FORMATTING 45 class LocalizationInfo;
47 class RuleBasedCollator;
58 URBNF_NUMBERING_SYSTEM,
59 #ifndef U_HIDE_DEPRECATED_API 65 #endif // U_HIDE_DEPRECATED_API 727 virtual int32_t getNumberOfRuleSetNames()
const;
743 virtual int32_t getNumberOfRuleSetDisplayNameLocales(
void)
const;
753 virtual Locale getRuleSetDisplayNameLocale(int32_t index,
UErrorCode& status)
const;
769 const Locale& locale = Locale::getDefault());
780 const Locale& locale = Locale::getDefault());
889 #if !UCONFIG_NO_COLLATION 1012 void initCapitalizationContextInfo(
const Locale& thelocale);
1015 void initDefaultRuleSet();
1016 void format(
double number, NFRuleSet& ruleSet);
1020 friend class NFSubstitution;
1021 friend class NFRule;
1022 friend class NFRuleSet;
1023 friend class FractionalPartSubstitution;
1025 inline NFRuleSet * getDefaultRuleSet()
const;
1029 NFRule * initializeDefaultInfinityRule(
UErrorCode &status);
1030 const NFRule * getDefaultInfinityRule()
const;
1031 NFRule * initializeDefaultNaNRule(
UErrorCode &status);
1032 const NFRule * getDefaultNaNRule()
const;
1037 NFRuleSet **ruleSets;
1039 int32_t numRuleSets;
1040 NFRuleSet *defaultRuleSet;
1044 NFRule *defaultInfinityRule;
1045 NFRule *defaultNaNRule;
1048 LocalizationInfo* localizations;
1050 UBool capitalizationInfoSet;
1051 UBool capitalizationForUIListMenu;
1052 UBool capitalizationForStandAlone;
1058 #if !UCONFIG_NO_COLLATION 1068 RuleBasedNumberFormat::getDefaultRuleSet()
const {
1069 return defaultRuleSet;
UDisplayContext
Display context settings.
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.
One more than the highest normal URBNFRuleSetTag value.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
The RuleBasedCollator class provides the implementation of Collator, using data-driven tables...
The BreakIterator class implements methods for finding the location of boundaries in text...
C API: Plural rules, select plural keywords for numeric values.
#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...
UPluralType
Type of plurals and PluralRules.
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.