23 #if !UCONFIG_NO_FORMATTING 115 static UClassID U_EXPORT2 getStaticClassID(
void);
160 #endif // !UCONFIG_NO_FORMATTING 161 #endif // __MEASURE_H__ A unit such as length, mass, volume, currency, etc.
An amount of a specified unit, consisting of a number and a Unit.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
const MeasureUnit & getUnit() const
Return a reference to the unit of this object.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
const Formattable & getNumber() const
Return a reference to the numeric value of this object.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Basic definitions for ICU, for both C and C++ APIs.
UObject is the common ICU "boilerplate" class.
int8_t UBool
The ICU boolean type.
C++ API: Formattable is a thin wrapper for primitive types used for formatting and parsing...