17 #if !UCONFIG_NO_FORMATTING
194 friend class DecimalFormatImpl;
205 void deleteHash(Hashtable* hTable);
225 void copyHash(
const Hashtable* source, Hashtable* target,
UErrorCode& status);
236 Hashtable* fPluralCountToCurrencyUnitPattern;
This class represents the information needed by DecimalFormat to format currency plural,...
const Locale & getLocale() const
Get locale.
UBool operator==(const CurrencyPluralInfo &info) const
Equal operator.
const PluralRules * getPluralRules() const
Gets plural rules of this locale, used for currency plural format.
CurrencyPluralInfo(UErrorCode &status)
Create a CurrencyPluralInfo object for the default locale.
CurrencyPluralInfo * clone() const
Clone.
CurrencyPluralInfo & operator=(const CurrencyPluralInfo &info)
Assignment operator.
void setPluralRules(const UnicodeString &ruleDescription, UErrorCode &status)
Set plural rules.
void setLocale(const Locale &loc, UErrorCode &status)
Set locale.
UBool operator!=(const CurrencyPluralInfo &info) const
Not equal operator.
CurrencyPluralInfo(const CurrencyPluralInfo &info)
Copy constructor.
virtual ~CurrencyPluralInfo()
Destructor.
virtual UClassID getDynamicClassID() const
ICU "poor man's RTTI", returns a UClassID for the actual class.
CurrencyPluralInfo(const Locale &locale, UErrorCode &status)
Create a CurrencyPluralInfo object for the given locale.
UnicodeString & getCurrencyPluralPattern(const UnicodeString &pluralCount, UnicodeString &result) const
Given a plural count, gets currency plural pattern of this locale, used for currency plural format.
void setCurrencyPluralPattern(const UnicodeString &pluralCount, const UnicodeString &pattern, UErrorCode &status)
Set currency plural pattern.
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
A Locale object represents a specific geographical, political, or cultural region.
Defines rules for mapping non-negative numeric values onto a small set of keywords.
UObject is the common ICU "boilerplate" class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UBool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
int8_t UBool
The ICU boolean type.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.