13#ifndef __CURRENCYAMOUNT_H__
14#define __CURRENCYAMOUNT_H__
18#if U_SHOW_CPLUSPLUS_API
20#if !UCONFIG_NO_FORMATTING
120 inline const char16_t* getISOCurrency()
const;
127inline const char16_t* CurrencyAmount::getISOCurrency()
const {
128 return getCurrency().getISOCurrency();
const char16_t * wrapper with implicit conversion from distinct but bit-compatible pointer types.
A currency together with a numeric amount, such as 200 USD.
CurrencyAmount(const CurrencyAmount &other)
Copy constructor.
static UClassID getStaticClassID()
Returns the class ID for this class.
virtual UClassID getDynamicClassID() const override
Returns a unique class ID for this object POLYMORPHICALLY.
CurrencyAmount(double amount, ConstChar16Ptr isoCode, UErrorCode &ec)
Construct an object with the given numeric amount and the given ISO currency code.
CurrencyAmount(const Formattable &amount, ConstChar16Ptr isoCode, UErrorCode &ec)
Construct an object with the given numeric amount and the given ISO currency code.
virtual CurrencyAmount * clone() const override
Return a polymorphic clone of this object.
virtual ~CurrencyAmount()
Destructor.
CurrencyAmount & operator=(const CurrencyAmount &other)
Assignment operator.
A unit of currency, such as USD (U.S.
An amount of a specified unit, consisting of a number and a Unit.
C++ API: Currency Unit Information.
C++ API: MeasureUnit object.
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
Standard ICU4C error code type, a substitute for exceptions.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.