Go to the documentation of this file.
23 #if !UCONFIG_NO_FORMATTING
160 #endif // !UCONFIG_NO_FORMATTING
161 #endif // __MEASURE_H__
A unit such as length, mass, volume, currency, etc.
Basic definitions for ICU, for both C and C++ APIs.
static UClassID getStaticClassID(void)
Return the class ID for this class.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
int8_t UBool
The ICU boolean type.
Measure & operator=(const Measure &other)
Assignment operator.
virtual ~Measure()
Destructor.
UObject is the common ICU "boilerplate" class.
Measure(const Measure &other)
Copy constructor.
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,...
C++ API: Formattable is a thin wrapper for primitive types used for formatting and parsing.
Measure(const Formattable &number, MeasureUnit *adoptedUnit, UErrorCode &ec)
Construct an object with the given numeric amount and the given unit.
An amount of a specified unit, consisting of a number and a Unit.
UBool operator==(const UObject &other) const
Equality operator.
virtual UObject * clone() const
Return a polymorphic clone of this object.
#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.
Measure()
Default constructor.
virtual UClassID getDynamicClassID(void) const
Returns a unique class ID POLYMORPHICALLY.