Go to the documentation of this file.
11 #ifndef __CURRENCYAMOUNT_H__
12 #define __CURRENCYAMOUNT_H__
16 #if !UCONFIG_NO_FORMATTING
116 inline const UChar* getISOCurrency()
const;
123 inline const UChar* CurrencyAmount::getISOCurrency()
const {
124 return getCurrency().getISOCurrency();
129 #endif // !UCONFIG_NO_FORMATTING
130 #endif // __CURRENCYAMOUNT_H__
CurrencyAmount(const CurrencyAmount &other)
Copy constructor.
Basic definitions for ICU, for both C and C++ APIs.
A unit of currency, such as USD (U.S.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
UObject is the common ICU "boilerplate" class.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
virtual UClassID getDynamicClassID() const
Returns a unique class ID for this object POLYMORPHICALLY.
virtual ~CurrencyAmount()
Destructor.
CurrencyAmount(const Formattable &amount, const UChar *isoCode, UErrorCode &ec)
Construct an object with the given numeric amount and the given ISO currency code.
An amount of a specified unit, consisting of a number and a Unit.
CurrencyAmount(double amount, const UChar *isoCode, UErrorCode &ec)
Construct an object with the given numeric amount and the given ISO currency code.
CurrencyAmount & operator=(const CurrencyAmount &other)
Assignment operator.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
A currency together with a numeric amount, such as 200 USD.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
C++ API: Currency Unit Information.
static UClassID getStaticClassID()
Returns the class ID for this class.
C++ API: MeasureUnit object.
virtual UObject * clone() const
Return a polymorphic clone of this object.