21#if !UCONFIG_NO_FORMATTING
A unit such as length, mass, volume, currency, etc.
UBool operator==(const UObject &other) const
Equality operator.
Measure & operator=(const Measure &other)
Assignment operator.
const MeasureUnit & getUnit() const
Return a reference to the unit of this object.
Measure(const Formattable &number, MeasureUnit *adoptedUnit, UErrorCode &ec)
Construct an object with the given numeric amount and the given unit.
Measure(const Measure &other)
Copy constructor.
virtual ~Measure()
Destructor.
virtual UObject * clone() const =0
Return a polymorphic clone of this object.
const Formattable & getNumber() const
Return a reference to the numeric value of this object.
Measure()
Default constructor.
UObject is the common ICU "boilerplate" class.
C++ API: Formattable is a thin wrapper for primitive numeric types.
int8_t UBool
The ICU boolean type.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
#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.