13 #ifndef __MEASUREUNIT_H__ 14 #define __MEASUREUNIT_H__ 18 #if U_SHOW_CPLUSPLUS_API 20 #if !UCONFIG_NO_FORMATTING 32 class StringEnumeration;
33 struct MeasureUnitImpl;
35 #ifndef U_HIDE_DRAFT_API 228 #endif // U_HIDE_DRAFT_API 253 #ifndef U_HIDE_DRAFT_API 273 #endif // U_HIDE_DRAFT_API 281 #ifndef U_HIDE_DRAFT_API 287 #endif // U_HIDE_DRAFT_API 315 return !(*
this == other);
325 const char *getType()
const;
334 const char *getSubtype()
const;
336 #ifndef U_HIDE_DRAFT_API 343 const char* getIdentifier()
const;
408 int32_t getDimensionality(
UErrorCode& status)
const;
442 #endif // U_HIDE_DRAFT_API 444 #ifndef U_HIDE_INTERNAL_API 464 #endif // U_HIDE_INTERNAL_API 477 static int32_t getAvailable(
479 int32_t destCapacity,
494 static int32_t getAvailable(
497 int32_t destCapacity,
521 static UClassID U_EXPORT2 getStaticClassID(
void);
536 #ifndef U_HIDE_INTERNAL_API 543 int32_t getIndex()
const;
550 static int32_t getIndexCount();
558 static int32_t internalGetIndexForTypeAndSubtype(
const char *type,
const char *subtype);
1264 #ifndef U_HIDE_DRAFT_API 1666 #ifndef U_HIDE_DRAFT_API 1780 #ifndef U_HIDE_DRAFT_API 1798 #ifndef U_HIDE_DRAFT_API 1816 #ifndef U_HIDE_DRAFT_API 1834 #ifndef U_HIDE_DRAFT_API 1852 #ifndef U_HIDE_DRAFT_API 1870 #ifndef U_HIDE_DRAFT_API 1888 #ifndef U_HIDE_DRAFT_API 2610 #ifndef U_HIDE_DRAFT_API 2724 #ifndef U_HIDE_DRAFT_API 3355 #ifndef U_HIDE_INTERNAL_API 3360 void initTime(
const char *timeId);
3372 void initNoUnit(
const char *subtype);
3379 MeasureUnitImpl* fImpl;
3387 void setTo(int32_t typeId, int32_t subTypeId);
3388 int32_t getOffset()
const;
3396 friend struct MeasureUnitImpl;
3401 #endif // !UNCONFIG_NO_FORMATTING 3405 #endif // __MEASUREUNIT_H__ A unit such as length, mass, volume, currency, etc.
The absence of an SI prefix.
enum icu::UMeasureSIPrefix UMeasureSIPrefix
Enumeration for SI prefixes, such as "kilo".
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
UBool operator!=(const UObject &other) const
Inequality operator.
A compound unit, like meter-per-second.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Base class for 'pure' C++ implementations of uenum api.
SI prefix: zepto, 10^-21.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
A mixed unit, like hour+minute.
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
SI prefix: yocto, 10^-24.
"Smart pointer" class, deletes objects via the C++ array delete[] operator.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
UMeasureSIPrefix
Enumeration for SI prefixes, such as "kilo".
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
SI prefix: femto, 10^-15.
Basic definitions for ICU, for both C and C++ APIs.
A single unit, like kilojoule.
A string-like object that points to a sized piece of memory.
UObject is the common ICU "boilerplate" class.
int8_t UBool
The ICU boolean type.
UMeasureUnitComplexity
Enumeration for unit complexity.