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;
412 int32_t getDimensionality(
UErrorCode& status)
const;
446 #endif // U_HIDE_DRAFT_API 448 #ifndef U_HIDE_INTERNAL_API 468 #endif // U_HIDE_INTERNAL_API 481 static int32_t getAvailable(
483 int32_t destCapacity,
498 static int32_t getAvailable(
501 int32_t destCapacity,
525 static UClassID U_EXPORT2 getStaticClassID(
void);
540 #ifndef U_HIDE_INTERNAL_API 547 int32_t getIndex()
const;
554 static int32_t getIndexCount();
562 static int32_t internalGetIndexForTypeAndSubtype(
const char *type,
const char *subtype);
1268 #ifndef U_HIDE_DRAFT_API 1670 #ifndef U_HIDE_DRAFT_API 1784 #ifndef U_HIDE_DRAFT_API 1802 #ifndef U_HIDE_DRAFT_API 1820 #ifndef U_HIDE_DRAFT_API 1838 #ifndef U_HIDE_DRAFT_API 1856 #ifndef U_HIDE_DRAFT_API 1874 #ifndef U_HIDE_DRAFT_API 1892 #ifndef U_HIDE_DRAFT_API 2614 #ifndef U_HIDE_DRAFT_API 2728 #ifndef U_HIDE_DRAFT_API 3359 #ifndef U_HIDE_INTERNAL_API 3364 void initTime(
const char *timeId);
3376 void initNoUnit(
const char *subtype);
3384 MeasureUnitImpl* fImpl;
3395 void setTo(int32_t typeId, int32_t subTypeId);
3396 int32_t getOffset()
const;
3408 friend struct MeasureUnitImpl;
3413 #endif // !UNCONFIG_NO_FORMATTING 3417 #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.