13 #ifndef __MEASUREUNIT_H__ 14 #define __MEASUREUNIT_H__ 18 #if !UCONFIG_NO_FORMATTING 29 class StringEnumeration;
87 return !(*
this == other);
94 const char *getType()
const;
100 const char *getSubtype()
const;
113 static int32_t getAvailable(
115 int32_t destCapacity,
130 static int32_t getAvailable(
133 int32_t destCapacity,
157 static UClassID U_EXPORT2 getStaticClassID(
void);
172 #ifndef U_HIDE_INTERNAL_API 179 int32_t getIndex()
const;
186 static int32_t getIndexCount();
194 static int32_t internalGetIndexForTypeAndSubtype(
const char *type,
const char *subtype);
348 #ifndef U_HIDE_DRAFT_API 358 #ifndef U_HIDE_DRAFT_API 368 #ifndef U_HIDE_DRAFT_API 402 #ifndef U_HIDE_DRAFT_API 412 #ifndef U_HIDE_DRAFT_API 422 #ifndef U_HIDE_DRAFT_API 432 #ifndef U_HIDE_DRAFT_API 442 #ifndef U_HIDE_DRAFT_API 1252 #ifndef U_HIDE_DRAFT_API 1339 #ifndef U_HIDE_INTERNAL_API 1344 void initTime(
const char *timeId);
1350 void initCurrency(
const char *isoCurrency);
1359 MeasureUnit(int32_t typeId, int32_t subTypeId) : fTypeId(typeId), fSubTypeId(subTypeId) {
1362 void setTo(int32_t typeId, int32_t subTypeId);
1363 int32_t getOffset()
const;
1369 #endif // !UNCONFIG_NO_FORMATTING 1370 #endif // __MEASUREUNIT_H__ A unit such as length, mass, volume, currency, etc.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
UBool operator!=(const UObject &other) const
Inequality operator.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Base class for 'pure' C++ implementations of uenum api.
#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.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
MeasureUnit()
Default constructor.
#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.