13 #ifndef __MEASUREUNIT_H__ 14 #define __MEASUREUNIT_H__ 18 #if !UCONFIG_NO_FORMATTING 29 class StringEnumeration;
86 return !(*
this == other);
93 const char *getType()
const;
99 const char *getSubtype()
const;
112 static int32_t getAvailable(
114 int32_t destCapacity,
129 static int32_t getAvailable(
132 int32_t destCapacity,
156 static UClassID U_EXPORT2 getStaticClassID(
void);
171 #ifndef U_HIDE_INTERNAL_API 178 int32_t getIndex()
const;
185 static int32_t getIndexCount();
193 static int32_t internalGetIndexForTypeAndSubtype(
const char *type,
const char *subtype);
371 #ifndef U_HIDE_DRAFT_API 381 #ifndef U_HIDE_DRAFT_API 487 #ifndef U_HIDE_DRAFT_API 1017 #ifndef U_HIDE_DRAFT_API 1336 #ifndef U_HIDE_INTERNAL_API 1341 void initTime(
const char *timeId);
1347 void initCurrency(
const char *isoCurrency);
1353 void initNoUnit(
const char *subtype);
1362 MeasureUnit(int32_t typeId, int32_t subTypeId) : fTypeId(typeId), fSubTypeId(subTypeId) {
1365 void setTo(int32_t typeId, int32_t subTypeId);
1366 int32_t getOffset()
const;
1372 #endif // !UNCONFIG_NO_FORMATTING 1373 #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.
#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.