Go to the documentation of this file.
11 #ifndef MEASUREFORMAT_H
12 #define MEASUREFORMAT_H
16 #if !UCONFIG_NO_FORMATTING
77 class MeasureFormatCacheData;
78 class SharedNumberFormat;
79 class SharedPluralRules;
80 class QuantityFormatter;
81 class SimpleFormatter;
184 int32_t measureCount,
241 static UClassID U_EXPORT2 getStaticClassID(
void);
263 #ifndef U_HIDE_INTERNAL_API
270 void initMeasureFormat(
318 const MeasureFormatCacheData *cache;
319 const SharedNumberFormat *numberFormat;
320 const SharedPluralRules *pluralRules;
343 int32_t withPerUnitAndAppend(
358 int32_t measureCount,
381 #endif // #if !UCONFIG_NO_FORMATTING
382 #endif // #ifndef MEASUREFORMAT_H
A unit such as length, mass, volume, currency, etc.
UMeasureFormatWidth
Constants for various widths.
UDateFormatField
FieldPosition and UFieldPosition selectors for format fields defined by DateFormat and UDateFormat.
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
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
@ UMEASFMT_WIDTH_COUNT
Count of values in this enum.
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.
double UDate
Date and Time data type.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
#define U_NAMESPACE_BEGIN
A Locale object represents a specific geographical, political, or cultural region.