ICU 65.1
65.1
|
C++ API: Compatibility APIs for measure formatting. More...
Go to the source code of this file.
Data Structures | |
class | icu::MeasureFormat |
Namespaces | |
icu | |
File coll.h. | |
Typedefs | |
typedef enum UMeasureFormatWidth | UMeasureFormatWidth |
Enumerations | |
enum | UMeasureFormatWidth { UMEASFMT_WIDTH_WIDE, UMEASFMT_WIDTH_SHORT, UMEASFMT_WIDTH_NARROW, UMEASFMT_WIDTH_NUMERIC, UMEASFMT_WIDTH_COUNT = 4 } |
Constants for various widths. More... | |
C++ API: Compatibility APIs for measure formatting.
Definition in file measfmt.h.
typedef enum UMeasureFormatWidth UMeasureFormatWidth |
enum UMeasureFormatWidth |
Constants for various widths.
There are 4 widths: Wide, Short, Narrow, Numeric. For example, for English, when formatting "3 hours" Wide is "3 hours"; short is "3 hrs"; narrow is "3h"; formatting "3 hours 17 minutes" as numeric give "3:17"
Enumerator | |
---|---|
UMEASFMT_WIDTH_WIDE | Spell out measure units.
|
UMEASFMT_WIDTH_SHORT | Abbreviate measure units.
|
UMEASFMT_WIDTH_NARROW | Use symbols for measure units when possible.
|
UMEASFMT_WIDTH_NUMERIC | Completely omit measure units when possible. For example, format '5 hours, 37 minutes' as '5:37'
|
UMEASFMT_WIDTH_COUNT | One more than the highest normal UMeasureFormatWidth value.
|