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);
1296 #ifndef U_HIDE_INTERNAL_API
1301 void initTime(
const char *timeId);
1307 void initCurrency(
const char *isoCurrency);
1313 void initNoUnit(
const char *subtype);
1322 MeasureUnit(int32_t typeId, int32_t subTypeId) : fTypeId(typeId), fSubTypeId(subTypeId) {
1325 void setTo(int32_t typeId, int32_t subTypeId);
1326 int32_t getOffset()
const;
1327 static MeasureUnit *create(
int typeId,
int subTypeId,
UErrorCode &status);
1332 #endif // !UNCONFIG_NO_FORMATTING
1333 #endif // __MEASUREUNIT_H__