13#ifndef __CURRENCYUNIT_H__
14#define __CURRENCYUNIT_H__
18#if U_SHOW_CPLUSPLUS_API
20#if !UCONFIG_NO_FORMATTING
127 inline const char16_t* getISOCurrency()
const;
136inline const char16_t* CurrencyUnit::getISOCurrency()
const {
const char16_t * wrapper with implicit conversion from distinct but bit-compatible pointer types.
A unit of currency, such as USD (U.S.
virtual UClassID getDynamicClassID() const override
Returns a unique class ID for this object POLYMORPHICALLY.
CurrencyUnit(const CurrencyUnit &other)
Copy constructor.
virtual ~CurrencyUnit()
Destructor.
CurrencyUnit & operator=(const CurrencyUnit &other)
Assignment operator.
CurrencyUnit(ConstChar16Ptr isoCode, UErrorCode &ec)
Construct an object with the given ISO currency code.
static UClassID getStaticClassID()
Returns the class ID for this class.
CurrencyUnit()
Default constructor.
CurrencyUnit(const MeasureUnit &measureUnit, UErrorCode &ec)
Copy constructor from MeasureUnit.
CurrencyUnit(StringPiece isoCode, UErrorCode &ec)
Construct an object with the given ISO currency code.
virtual CurrencyUnit * clone() const override
Return a polymorphic clone of this object.
A unit such as length, mass, volume, currency, etc.
A string-like object that points to a sized piece of memory.
C++ API: A unit for measuring a quantity.
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.