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();
210 #ifndef U_HIDE_DRAFT_API 244 #ifndef U_HIDE_DRAFT_API 270 #ifndef U_HIDE_DRAFT_API 288 #ifndef U_HIDE_DRAFT_API 322 #ifndef U_HIDE_DRAFT_API 332 #ifndef U_HIDE_DRAFT_API 342 #ifndef U_HIDE_DRAFT_API 352 #ifndef U_HIDE_DRAFT_API 362 #ifndef U_HIDE_DRAFT_API 372 #ifndef U_HIDE_DRAFT_API 382 #ifndef U_HIDE_DRAFT_API 392 #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 468 #ifndef U_HIDE_DRAFT_API 502 #ifndef U_HIDE_DRAFT_API 536 #ifndef U_HIDE_DRAFT_API 546 #ifndef U_HIDE_DRAFT_API 556 #ifndef U_HIDE_DRAFT_API 566 #ifndef U_HIDE_DRAFT_API 576 #ifndef U_HIDE_DRAFT_API 586 #ifndef U_HIDE_DRAFT_API 596 #ifndef U_HIDE_DRAFT_API 606 #ifndef U_HIDE_DRAFT_API 616 #ifndef U_HIDE_DRAFT_API 626 #ifndef U_HIDE_DRAFT_API 636 #ifndef U_HIDE_DRAFT_API 646 #ifndef U_HIDE_DRAFT_API 656 #ifndef U_HIDE_DRAFT_API 666 #ifndef U_HIDE_DRAFT_API 676 #ifndef U_HIDE_DRAFT_API 694 #ifndef U_HIDE_DRAFT_API 704 #ifndef U_HIDE_DRAFT_API 722 #ifndef U_HIDE_DRAFT_API 764 #ifndef U_HIDE_DRAFT_API 790 #ifndef U_HIDE_DRAFT_API 800 #ifndef U_HIDE_DRAFT_API 810 #ifndef U_HIDE_DRAFT_API 836 #ifndef U_HIDE_DRAFT_API 846 #ifndef U_HIDE_DRAFT_API 872 #ifndef U_HIDE_DRAFT_API 882 #ifndef U_HIDE_DRAFT_API 892 #ifndef U_HIDE_DRAFT_API 910 #ifndef U_HIDE_DRAFT_API 928 #ifndef U_HIDE_DRAFT_API 938 #ifndef U_HIDE_DRAFT_API 948 #ifndef U_HIDE_DRAFT_API 974 #ifndef U_HIDE_DRAFT_API 984 #ifndef U_HIDE_DRAFT_API 1026 #ifndef U_HIDE_DRAFT_API 1036 #ifndef U_HIDE_DRAFT_API 1046 #ifndef U_HIDE_DRAFT_API 1096 #ifndef U_HIDE_DRAFT_API 1106 #ifndef U_HIDE_DRAFT_API 1116 #ifndef U_HIDE_DRAFT_API 1126 #ifndef U_HIDE_DRAFT_API 1136 #ifndef U_HIDE_DRAFT_API 1146 #ifndef U_HIDE_DRAFT_API 1156 #ifndef U_HIDE_DRAFT_API 1174 #ifndef U_HIDE_DRAFT_API 1192 #ifndef U_HIDE_DRAFT_API 1202 #ifndef U_HIDE_DRAFT_API 1212 #ifndef U_HIDE_DRAFT_API 1222 #ifndef U_HIDE_DRAFT_API 1232 #ifndef U_HIDE_DRAFT_API 1242 #ifndef U_HIDE_DRAFT_API 1260 #ifndef U_HIDE_DRAFT_API 1270 #ifndef U_HIDE_DRAFT_API 1280 #ifndef U_HIDE_DRAFT_API 1290 #ifndef U_HIDE_DRAFT_API 1300 #ifndef U_HIDE_DRAFT_API 1310 #ifndef U_HIDE_DRAFT_API 1325 #ifndef U_HIDE_INTERNAL_API 1330 void initTime(
const char *timeId);
1336 void initCurrency(
const char *isoCurrency);
1345 MeasureUnit(int32_t typeId, int32_t subTypeId) : fTypeId(typeId), fSubTypeId(subTypeId) {
1348 void setTo(int32_t typeId, int32_t subTypeId);
1349 int32_t getOffset()
const;
1355 #endif // !UNCONFIG_NO_FORMATTING 1356 #endif // __MEASUREUNIT_H__ UBool operator!=(const UObject &other) const
Inequality operator.
A unit such as length, mass, volume, currency, etc.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
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.
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.