15#if U_SHOW_CPLUSPLUS_API
29#if UCONFIG_NO_FORMATTING
47class LocalizationInfo;
49class RuleBasedCollator;
67#ifndef U_HIDE_DEPRECATED_API
80 URBNF_NUMBERING_SYSTEM = 3,
81#ifndef U_HIDE_DEPRECATED_API
844 const Locale& locale = Locale::getDefault());
855 const Locale& locale = Locale::getDefault());
858 using NumberFormat::format;
968 using NumberFormat::parse;
1124 void initDefaultRuleSet();
1128 friend class NFSubstitution;
1129 friend class NFRule;
1130 friend class NFRuleSet;
1131 friend class FractionalPartSubstitution;
1133 inline NFRuleSet * getDefaultRuleSet()
const;
1139 const NFRule * getDefaultInfinityRule()
const;
1141 const NFRule * getDefaultNaNRule()
const;
1148 NFRuleSet **fRuleSets { };
1150 int32_t numRuleSets { };
1151 NFRuleSet *defaultRuleSet { };
1153 RuleBasedCollator* collator { };
1154 DecimalFormatSymbols* decimalFormatSymbols { };
1155 NFRule *defaultInfinityRule { };
1156 NFRule *defaultNaNRule { };
1157 ERoundingMode fRoundingMode { ERoundingMode::kRoundUnnecessary };
1159 UBool unparseable { };
1160 uint8_t caseFoldOption { };
1161 UnicodeString* lenientParseRules { };
1162 LocalizationInfo* localizations { };
1163 UnicodeString originalDescription;
1164 UBool capitalizationInfoSet { };
1165 UBool capitalizationForUIListMenu { };
1166 UBool capitalizationForStandAlone { };
1167 BreakIterator* capitalizationBrkIter { };
1173RuleBasedNumberFormat::isLenient()
const {
1178RuleBasedNumberFormat::getDefaultRuleSet()
const {
1179 return defaultRuleSet;
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
"Smart pointer" base class; do not use directly: use LocalPointer etc.
A Locale object represents a specific geographical, political, or cultural region.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
The RuleBasedCollator class provides the implementation of Collator, using data-driven tables.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: Symbols for formatting numbers.
C++ API: Formattable is a thin wrapper for primitive types used for formatting and parsing.
C++ API: Locale ID object.
URBNFRuleSetTag
Tags for the predefined rulesets.
@ URBNF_COUNT
One more than the highest normal URBNFRuleSetTag value.
@ URBNF_DURATION
Requests predefined ruleset for formatting a value as a duration in hours, minutes,...
@ URBNF_ORDINAL
Requests predefined ruleset for the ordinal form of a number.
@ URBNF_SPELLOUT
Requests predefined ruleset for spelling out numeric values in words.
C++ API: Compatibility APIs for number formatting.
C++ API: String Enumeration.
A UParseError struct is used to returned detailed information about parsing errors.
UDisplayContext
Display context settings.
int8_t UBool
The ICU boolean type, a signed-byte integer.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
C API: Plural rules, select plural keywords for numeric values.
UPluralType
Type of plurals and PluralRules.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
#define U_I18N_API_CLASS
Set to export library symbols from inside the i18n library, and to import them from outside,...
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.