ICU 53.1  53.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Namespaces | Typedefs | Enumerations
measfmt.h File Reference

C++ API: Formatter for measure objects. More...

#include "unicode/utypes.h"
#include "unicode/measure.h"
#include "unicode/format.h"
#include "unicode/udat.h"

Go to the source code of this file.

Data Structures

class  icu::MeasureFormat
 A formatter for measure objects. More...
 

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
}
 Constants for various widths. More...
 

Detailed Description

C++ API: Formatter for measure objects.

Definition in file measfmt.h.

Typedef Documentation

Draft:
This API may be changed in the future versions and was introduced in ICU 53

Definition at line 70 of file measfmt.h.

Enumeration Type Documentation

Constants for various widths.

There are 3 widths: Wide, Short, Narrow. For example, for English, when formatting "3 hours" Wide is "3 hours"; short is "3 hrs"; narrow is "3h"

Draft:
This API may be changed in the future versions and was introduced in ICU 53
Enumerator
UMEASFMT_WIDTH_WIDE 

Spell out measure units.

Draft:
This API may be changed in the future versions and was introduced in ICU 53
UMEASFMT_WIDTH_SHORT 

Abbreviate measure units.

Draft:
This API may be changed in the future versions and was introduced in ICU 53
UMEASFMT_WIDTH_NARROW 

Use symbols for measure units when possible.

Draft:
This API may be changed in the future versions and was introduced in ICU 53
UMEASFMT_WIDTH_NUMERIC 

Completely omit measure units when possible.

For example, format '5 hours, 37 minutes' as '5:37'

Draft:
This API may be changed in the future versions and was introduced in ICU 53
UMEASFMT_WIDTH_COUNT 

Count of values in this enum.

Draft:
This API may be changed in the future versions and was introduced in ICU 53

Definition at line 35 of file measfmt.h.