|
ICU 57.1 57.1
|
A unit of currency, such as USD (U.S. More...
#include <currunit.h>
Public Member Functions | |
| CurrencyUnit (const UChar *isoCode, UErrorCode &ec) | |
| Construct an object with the given ISO currency code. | |
| CurrencyUnit (const CurrencyUnit &other) | |
| Copy constructor. | |
| CurrencyUnit & | operator= (const CurrencyUnit &other) |
| Assignment operator. | |
| virtual UObject * | clone () const |
| Return a polymorphic clone of this object. | |
| virtual | ~CurrencyUnit () |
| Destructor. | |
| virtual UClassID | getDynamicClassID () const |
| Returns a unique class ID for this object POLYMORPHICALLY. | |
| const UChar * | getISOCurrency () const |
| Return the ISO currency code of this object. | |
Public Member Functions inherited from MeasureUnit | |
| MeasureUnit () | |
| Default constructor. | |
| MeasureUnit (const MeasureUnit &other) | |
| Copy constructor. | |
| MeasureUnit & | operator= (const MeasureUnit &other) |
| Assignment operator. | |
| virtual | ~MeasureUnit () |
| Destructor. | |
| virtual UBool | operator== (const UObject &other) const |
| Equality operator. | |
| UBool | operator!= (const UObject &other) const |
| Inequality operator. | |
| const char * | getType () const |
| Get the type. | |
| const char * | getSubtype () const |
| Get the sub type. | |
| int32_t | getIndex () const |
| ICU use only. | |
Public Member Functions inherited from UObject | |
| virtual | ~UObject () |
| Destructor. | |
Additional Inherited Members | |
Protected Member Functions inherited from MeasureUnit | |
| void | initTime (const char *timeId) |
| For ICU use only. | |
| void | initCurrency (const char *isoCurrency) |
| For ICU use only. | |
A unit of currency, such as USD (U.S.
dollars) or JPY (Japanese yen). This class is a thin wrapper over a UChar string that subclasses MeasureUnit, for use with Measure and MeasureFormat.
Definition at line 35 of file currunit.h.
| CurrencyUnit::CurrencyUnit | ( | const UChar * | isoCode, |
| UErrorCode & | ec | ||
| ) |
| CurrencyUnit::CurrencyUnit | ( | const CurrencyUnit & | other | ) |
Return a polymorphic clone of this object.
The result will have the same class as returned by getDynamicClassID().
Reimplemented from MeasureUnit.
Returns a unique class ID for this object POLYMORPHICALLY.
This method implements a simple form of RTTI used by ICU.
Reimplemented from MeasureUnit.
Return the ISO currency code of this object.
Definition at line 103 of file currunit.h.
Returns the class ID for this class.
This is used to compare to the return value of getDynamicClassID().
| CurrencyUnit & CurrencyUnit::operator= | ( | const CurrencyUnit & | other | ) |