Go to the documentation of this file.
13 #ifndef MEASUREFORMAT_H
14 #define MEASUREFORMAT_H
18 #if U_SHOW_CPLUSPLUS_API
20 #if !UCONFIG_NO_FORMATTING
66 #ifndef U_HIDE_DEPRECATED_API
72 #endif // U_HIDE_DEPRECATED_API
83 class MeasureFormatCacheData;
84 class SharedNumberFormat;
85 class SharedPluralRules;
86 class QuantityFormatter;
87 class SimpleFormatter;
168 #ifndef U_FORCE_HIDE_DRAFT_API
179 #endif // U_FORCE_HIDE_DRAFT_API
199 int32_t measureCount,
275 static UClassID U_EXPORT2 getStaticClassID(
void);
297 #ifndef U_HIDE_INTERNAL_API
304 void initMeasureFormat(
359 const MeasureFormatCacheData *cache;
360 const SharedNumberFormat *numberFormat;
361 const SharedPluralRules *pluralRules;
378 int32_t measureCount,
393 #endif // #if !UCONFIG_NO_FORMATTING
397 #endif // #ifndef MEASUREFORMAT_H
A unit such as length, mass, volume, currency, etc.
UMeasureFormatWidth
Constants for various widths.
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
Basic definitions for ICU, for both C and C++ APIs.
@ UMEASFMT_WIDTH_NUMERIC
Completely omit measure units when possible.
int8_t UBool
The ICU boolean type.
Defines rules for mapping non-negative numeric values onto a small set of keywords.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
@ UMEASFMT_WIDTH_COUNT
One more than the highest normal UMeasureFormatWidth value.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
@ UMEASFMT_WIDTH_NARROW
Use symbols for measure units when possible.
An amount of a specified unit, consisting of a number and a Unit.
@ UMEASFMT_WIDTH_WIDE
Spell out measure units.
@ UMEASFMT_WIDTH_SHORT
Abbreviate measure units.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
A Locale object represents a specific geographical, political, or cultural region.