ICU 56.1: udisplaycontext.h Source File

ICU 56.1 56.1

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

- File List
- Globals

udisplaycontext.h
Go to the documentation of this file.
1 /*
2 *****************************************************************************************
3 * Copyright (C) 2014-2015, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 *****************************************************************************************
6 */
7
8 #ifndef UDISPLAYCONTEXT_H
9 #define UDISPLAYCONTEXT_H
10
11 #include "unicode/utypes.h"
12
13 #if !UCONFIG_NO_FORMATTING
14
25 enum UDisplayContextType {
31 UDISPCTX_TYPE_DIALECT_HANDLING = 0,
38 UDISPCTX_TYPE_CAPITALIZATION = 1,
44 UDISPCTX_TYPE_DISPLAY_LENGTH = 2
45 };
49 typedef enum UDisplayContextType UDisplayContextType;
50
56 enum UDisplayContext {
69 UDISPCTX_STANDARD_NAMES = (UDISPCTX_TYPE_DIALECT_HANDLING<<8) + 0,
76 UDISPCTX_DIALECT_NAMES = (UDISPCTX_TYPE_DIALECT_HANDLING<<8) + 1,
90 UDISPCTX_CAPITALIZATION_NONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 0,
96 UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 1,
102 UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 2,
108 UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 3,
115 UDISPCTX_CAPITALIZATION_FOR_STANDALONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 4,
128 UDISPCTX_LENGTH_FULL = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 0,
135 UDISPCTX_LENGTH_SHORT = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 1
136 };
140 typedef enum UDisplayContext UDisplayContext;
141
142 #endif /* #if !UCONFIG_NO_FORMATTING */
143
144 #endif
UDISPCTX_LENGTH_FULL
DISPLAY_LENGTH can be set to one of UDISPCTX_LENGTH_FULL or UDISPCTX_LENGTH_SHORT.
Definition: udisplaycontext.h:128
UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE
The capitalization context if a date, date symbol or display name is to be formatted with capitalizat...
Definition: udisplaycontext.h:96
UDisplayContext
UDisplayContext
Display context settings.
Definition: udisplaycontext.h:56
UDISPCTX_STANDARD_NAMES
DIALECT_HANDLING can be set to one of UDISPCTX_STANDARD_NAMES or UDISPCTX_DIALECT_NAMES.
Definition: udisplaycontext.h:69
UDISPCTX_CAPITALIZATION_NONE
CAPITALIZATION can be set to one of UDISPCTX_CAPITALIZATION_NONE, UDISPCTX_CAPITALIZATION_FOR_MIDDLE...
Definition: udisplaycontext.h:90
UDISPCTX_TYPE_CAPITALIZATION
Type to retrieve the capitalization context setting, e.g.
Definition: udisplaycontext.h:38
UDISPCTX_DIALECT_NAMES
A possible setting for DIALECT_HANDLING: use dialect names, when generating a locale name...
Definition: udisplaycontext.h:76
UDISPCTX_LENGTH_SHORT
A possible setting for DISPLAY_LENGTH: use short names when generating a locale name, e.g.
Definition: udisplaycontext.h:135
UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU
The capitalization context if a date, date symbol or display name is to be formatted with capitalizat...
Definition: udisplaycontext.h:108
UDISPCTX_TYPE_DISPLAY_LENGTH
Type to retrieve the display length setting, e.g.
Definition: udisplaycontext.h:44
UDisplayContextType
UDisplayContextType
Display context types, for getting values of a particular setting.
Definition: udisplaycontext.h:25
UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE
The capitalization context if a date, date symbol or display name is to be formatted with capitalizat...
Definition: udisplaycontext.h:102
utypes.h
Basic definitions for ICU, for both C and C++ APIs.
UDISPCTX_CAPITALIZATION_FOR_STANDALONE
The capitalization context if a date, date symbol or display name is to be formatted with capitalizat...
Definition: udisplaycontext.h:115
UDISPCTX_TYPE_DIALECT_HANDLING
Type to retrieve the dialect handling setting, e.g.
Definition: udisplaycontext.h:31