ICU 54.1 54.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

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

C API: Display context types (enum values) More...

`#include "unicode/utypes.h"`

Go to the source code of this file.

## Typedefs
typedef enum UDisplayContextType | UDisplayContextType
typedef enum UDisplayContext | UDisplayContext

## Enumerations
enum | UDisplayContextType { UDISPCTX_TYPE_DIALECT_HANDLING = 0, UDISPCTX_TYPE_CAPITALIZATION = 1, UDISPCTX_TYPE_DISPLAY_LENGTH = 2 }
| Display context types, for getting values of a particular setting. More...
enum | UDisplayContext { UDISPCTX_STANDARD_NAMES = (UDISPCTX_TYPE_DIALECT_HANDLING<<8) + 0, UDISPCTX_DIALECT_NAMES = (UDISPCTX_TYPE_DIALECT_HANDLING<<8) + 1, UDISPCTX_CAPITALIZATION_NONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 0, UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 1, UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 2, UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 3, UDISPCTX_CAPITALIZATION_FOR_STANDALONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 4, UDISPCTX_LENGTH_FULL = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 0, UDISPCTX_LENGTH_SHORT = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 1 }
| Display context settings. More...

## Detailed Description

C API: Display context types (enum values)

Definition in file udisplaycontext.h.

## Typedef Documentation

typedef enum UDisplayContext UDisplayContext

Stable:
  ICU 51

Definition at line 146 of file udisplaycontext.h.

typedef enum UDisplayContextType UDisplayContextType

Stable:
  ICU 51

Definition at line 52 of file udisplaycontext.h.

## Enumeration Type Documentation

enum UDisplayContext

Display context settings.

Note, the specific numeric values are internal and may change.

Stable:
  ICU 51

Enumerator:

  UDISPCTX_STANDARD_NAMES | DIALECT_HANDLING can be set to one of UDISPCTX_STANDARD_NAMES or UDISPCTX_DIALECT_NAMES. Use UDisplayContextType UDISPCTX_TYPE_DIALECT_HANDLING to get the value. A possible setting for DIALECT_HANDLING: use standard names when generating a locale name, e.g. en_GB displays as 'English (United Kingdom)'. Stable: ICU 51
  UDISPCTX_DIALECT_NAMES | A possible setting for DIALECT_HANDLING: use dialect names, when generating a locale name, e.g. en_GB displays as 'British English'. Stable: ICU 51
  UDISPCTX_CAPITALIZATION_NONE | CAPITALIZATION can be set to one of UDISPCTX_CAPITALIZATION_NONE, UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE, UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE, UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU, or UDISPCTX_CAPITALIZATION_FOR_STANDALONE. Use UDisplayContextType UDISPCTX_TYPE_CAPITALIZATION to get the value. The capitalization context to be used is unknown (this is the default value). Stable: ICU 51
  UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE | The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for the middle of a sentence. Stable: ICU 51
  UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE | The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for the beginning of a sentence. Stable: ICU 51
  UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU | The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for a user-interface list or menu item. Stable: ICU 51
  UDISPCTX_CAPITALIZATION_FOR_STANDALONE | The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for stand-alone usage such as an isolated name on a calendar page. Stable: ICU 51
  UDISPCTX_LENGTH_FULL | DISPLAY_LENGTH can be set to one of UDISPCTX_LENGTH_FULL or UDISPCTX_LENGTH_SHORT. Use UDisplayContextType UDISPCTX_TYPE_DISPLAY_LENGTH to get the value. A possible setting for DISPLAY_LENGTH: use full names when generating a locale name, e.g. "United States" for US. Draft: This API may be changed in the future versions and was introduced in ICU 54
  UDISPCTX_LENGTH_SHORT | A possible setting for DISPLAY_LENGTH: use short names when generating a locale name, e.g. "U.S." for US. Draft: This API may be changed in the future versions and was introduced in ICU 54

Definition at line 59 of file udisplaycontext.h.

enum UDisplayContextType

Display context types, for getting values of a particular setting.

Note, the specific numeric values are internal and may change.

Stable:
  ICU 51

Enumerator:

  UDISPCTX_TYPE_DIALECT_HANDLING | Type to retrieve the dialect handling setting, e.g. UDISPCTX_STANDARD_NAMES or UDISPCTX_DIALECT_NAMES. Stable: ICU 51
  UDISPCTX_TYPE_CAPITALIZATION | Type to retrieve the capitalization context setting, e.g. UDISPCTX_CAPITALIZATION_NONE, UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE, UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE, etc. Stable: ICU 51
  UDISPCTX_TYPE_DISPLAY_LENGTH | Type to retrieve the display length setting, e.g. UDISPCTX_LENGTH_FULL, UDISPCTX_LENGTH_SHORT. Draft: This API may be changed in the future versions and was introduced in ICU 54

Definition at line 25 of file udisplaycontext.h.