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();
250 #ifndef U_HIDE_DRAFT_API
332 #ifndef U_HIDE_DRAFT_API
438 #ifndef U_HIDE_DRAFT_API
736 #ifndef U_HIDE_DRAFT_API
994 #ifndef U_HIDE_DRAFT_API
1036 #ifndef U_HIDE_DRAFT_API
1142 #ifndef U_HIDE_DRAFT_API
1216 #ifndef U_HIDE_DRAFT_API
1255 #ifndef U_HIDE_INTERNAL_API
1260 void initTime(
const char *timeId);
1266 void initCurrency(
const char *isoCurrency);
1275 MeasureUnit(int32_t typeId, int32_t subTypeId) : fTypeId(typeId), fSubTypeId(subTypeId) {
1278 void setTo(int32_t typeId, int32_t subTypeId);
1279 int32_t getOffset()
const;
1280 static MeasureUnit *create(
int typeId,
int subTypeId,
UErrorCode &status);
1285 #endif // !UNCONFIG_NO_FORMATTING
1286 #endif // __MEASUREUNIT_H__