A currency together with a numeric amount, such as 200 USD.
More...
#include <curramt.h>
A currency together with a numeric amount, such as 200 USD.
- Author
- Alan Liu
- Stable:
- ICU 3.0
Definition at line 39 of file curramt.h.
◆ CurrencyAmount() [1/3]
Construct an object with the given numeric amount and the given ISO currency code.
- Parameters
-
amount | a numeric object; amount.isNumeric() must be true |
isoCode | the 3-letter ISO 4217 currency code; must not be NULL and must have length 3 |
ec | input-output error code. If the amount or the isoCode is invalid, then this will be set to a failing value. |
- Stable:
- ICU 3.0
◆ CurrencyAmount() [2/3]
Construct an object with the given numeric amount and the given ISO currency code.
- Parameters
-
amount | the amount of the given currency |
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. |
- Stable:
- ICU 3.0
◆ CurrencyAmount() [3/3]
◆ ~CurrencyAmount()
virtual icu::CurrencyAmount::~CurrencyAmount |
( |
| ) |
|
|
virtual |
◆ clone()
◆ getCurrency()
const CurrencyUnit & icu::CurrencyAmount::getCurrency |
( |
| ) |
const |
|
inline |
Return the currency unit object of this object.
- Stable:
- ICU 3.0
Definition at line 123 of file curramt.h.
◆ getDynamicClassID()
virtual UClassID icu::CurrencyAmount::getDynamicClassID |
( |
| ) |
const |
|
overridevirtual |
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.
- Stable:
- ICU 3.0
Reimplemented from icu::Measure.
◆ getISOCurrency()
const char16_t * icu::CurrencyAmount::getISOCurrency |
( |
| ) |
const |
|
inline |
Return the ISO currency code of this object.
- Stable:
- ICU 3.0
Definition at line 127 of file curramt.h.
◆ getStaticClassID()
static UClassID icu::CurrencyAmount::getStaticClassID |
( |
| ) |
|
|
static |
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.
- Stable:
- ICU 3.0
◆ operator=()
Assignment operator.
- Stable:
- ICU 3.0
The documentation for this class was generated from the following file: