18#if U_SHOW_CPLUSPLUS_API
25#if !UCONFIG_NO_FORMATTING
A unit such as length, mass, volume, currency, etc.
An amount of a specified unit, consisting of a number and a Unit.
virtual Measure * clone() const
Return a polymorphic clone of this object.
Measure(const Formattable &number, MeasureUnit *adoptedUnit, UErrorCode &ec)
Construct an object with the given numeric amount and the given unit.
virtual ~Measure()
Destructor.
Measure()
Default constructor.
static UClassID getStaticClassID(void)
Return the class ID for this class.
Measure & operator=(const Measure &other)
Assignment operator.
Measure(const Measure &other)
Copy constructor.
virtual UClassID getDynamicClassID(void) const override
Returns a unique class ID POLYMORPHICALLY.
bool operator==(const UObject &other) const
Equality operator.
UObject is the common ICU "boilerplate" class.
C++ API: Formattable is a thin wrapper for primitive types used for formatting and parsing.
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.