11 #ifndef __MEASUREUNIT_H__
12 #define __MEASUREUNIT_H__
16 #if !UCONFIG_NO_FORMATTING
27 class StringEnumeration;
85 return !(*
this == other);
92 const char *getType()
const;
98 const char *getSubtype()
const;
111 static int32_t getAvailable(
113 int32_t destCapacity,
128 static int32_t getAvailable(
131 int32_t destCapacity,
155 static UClassID U_EXPORT2 getStaticClassID(
void);
170 #ifndef U_HIDE_INTERNAL_API
177 int32_t getIndex()
const;
184 static int32_t getIndexCount();
192 static int32_t internalGetIndexForTypeAndSubtype(
const char *type,
const char *subtype);
258 #ifndef U_HIDE_DRAFT_API
348 #ifndef U_HIDE_DRAFT_API
358 #ifndef U_HIDE_DRAFT_API
368 #ifndef U_HIDE_DRAFT_API
378 #ifndef U_HIDE_DRAFT_API
404 #ifndef U_HIDE_DRAFT_API
494 #ifndef U_HIDE_DRAFT_API
792 #ifndef U_HIDE_DRAFT_API
1042 #ifndef U_HIDE_DRAFT_API
1084 #ifndef U_HIDE_DRAFT_API
1190 #ifndef U_HIDE_DRAFT_API
1224 #ifndef U_HIDE_DRAFT_API
1274 #ifndef U_HIDE_DRAFT_API
1313 #ifndef U_HIDE_INTERNAL_API
1318 void initTime(
const char *timeId);
1324 void initCurrency(
const char *isoCurrency);
1333 MeasureUnit(int32_t typeId, int32_t subTypeId) : fTypeId(typeId), fSubTypeId(subTypeId) {
1336 void setTo(int32_t typeId, int32_t subTypeId);
1337 int32_t getOffset()
const;
1338 static MeasureUnit *create(
int typeId,
int subTypeId,
UErrorCode &status);
1343 #endif // !UNCONFIG_NO_FORMATTING
1344 #endif // __MEASUREUNIT_H__