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;
1285 #endif // !UNCONFIG_NO_FORMATTING 1286 #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.