class CurrencyUnit
Defined at line 39 of file ../../third_party/icu/latest/source/i18n/unicode/currunit.h
A unit of currency, such as USD (U.S. dollars) or JPY (Japanese
yen). This class is a thin wrapper over a char16_t string that
subclasses MeasureUnit, for use with Measure and MeasureFormat.
Public Methods
void CurrencyUnit ()
Default constructor. Initializes currency code to "XXX" (no currency).
ICU 60
void CurrencyUnit (ConstChar16Ptr isoCode, UErrorCode & ec)
Construct an object with the given ISO currency code.
Parameters
void CurrencyUnit (StringPiece isoCode, UErrorCode & ec)
Construct an object with the given ISO currency code.
Parameters
void CurrencyUnit (const CurrencyUnit & other)
Copy constructor
ICU 3.0
void CurrencyUnit (const MeasureUnit & measureUnit, UErrorCode & ec)
Copy constructor from MeasureUnit. This constructor allows you to
restore a CurrencyUnit that was sliced to MeasureUnit.
Parameters
CurrencyUnit & operator= (const CurrencyUnit & other)
Assignment operator
ICU 3.0
CurrencyUnit * clone ()
Return a polymorphic clone of this object. The result will
have the same class as returned by getDynamicClassID().
ICU 3.0
void ~CurrencyUnit ()
Destructor
ICU 3.0
UClassID getDynamicClassID ()
Returns a unique class ID for this object POLYMORPHICALLY.
This method implements a simple form of RTTI used by ICU.
Returns
The class ID for this object. All objects of a given
class have the same class ID. Objects of other classes have
different class IDs.
ICU 3.0
UClassID getStaticClassID ()
Returns the class ID for this class. This is used to compare to
the return value of getDynamicClassID().
Returns
The class ID for all objects of this class.
ICU 3.0
const char16_t * getISOCurrency ()
Return the ISO currency code of this object.
ICU 3.0
Defined at line 136 of file ../../third_party/icu/latest/source/i18n/unicode/currunit.h