|
ICU 52.1
52.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. | |
| UBool | operator== (const UObject &other) const |
| Equality operator. | |
| 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 icu::MeasureUnit | |
| virtual | ~MeasureUnit () |
| Destructor. | |
Public Member Functions inherited from icu::UObject | |
| virtual | ~UObject () |
| Destructor. | |
Static Public Member Functions | |
| static UClassID | getStaticClassID () |
| Returns the class ID for this class. | |
Additional Inherited Members | |
Protected Member Functions inherited from icu::MeasureUnit | |
| MeasureUnit () | |
| Default constructor. | |
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.
| icu::CurrencyUnit::CurrencyUnit | ( | const UChar * | isoCode, |
| UErrorCode & | ec | ||
| ) |
Construct an object with the given ISO currency code.
| isoCode | the 3-letter ISO 4217 currency code; must not be NULL and must have length 3 |
| ec | input-output error code. If the isoCode is invalid, then this will be set to a failing value. |
| icu::CurrencyUnit::CurrencyUnit | ( | const CurrencyUnit & | other | ) |
Copy constructor.
|
virtual |
Destructor.
|
virtual |
Return a polymorphic clone of this object.
The result will have the same class as returned by getDynamicClassID().
Implements icu::MeasureUnit.
|
virtual |
Returns a unique class ID for this object POLYMORPHICALLY.
This method implements a simple form of RTTI used by ICU.
Reimplemented from icu::UObject.
|
inline |
Return the ISO currency code of this object.
Definition at line 110 of file currunit.h.
|
static |
Returns the class ID for this class.
This is used to compare to the return value of getDynamicClassID().
| CurrencyUnit& icu::CurrencyUnit::operator= | ( | const CurrencyUnit & | other | ) |
Assignment operator.
Equality operator.
Return true if this object is equal to the given object.
Implements icu::MeasureUnit.
1.8.1.2