ICU 58.2 58.2

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

- File List
- Globals

udisplaycontext.h
Go to the documentation of this file.
1 // Copyright (C) 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4 *****************************************************************************************
5 * Copyright (C) 2014-2016, International Business Machines
6 * Corporation and others. All Rights Reserved.
7 *****************************************************************************************
8 */
9
10 #ifndef UDISPLAYCONTEXT_H
11 #define UDISPLAYCONTEXT_H
12
13 #include "unicode/utypes.h"
14
15 #if !UCONFIG_NO_FORMATTING
16
27 enum UDisplayContextType {
33 UDISPCTX_TYPE_DIALECT_HANDLING = 0,
40 UDISPCTX_TYPE_CAPITALIZATION = 1,
46 UDISPCTX_TYPE_DISPLAY_LENGTH = 2,
47 #ifndef U_HIDE_DRAFT_API
48
53 UDISPCTX_TYPE_SUBSTITUTE_HANDLING = 3
54 #endif /* U_HIDE_DRAFT_API */
55 };
59 typedef enum UDisplayContextType UDisplayContextType;
60
66 enum UDisplayContext {
79 UDISPCTX_STANDARD_NAMES = (UDISPCTX_TYPE_DIALECT_HANDLING<<8) + 0,
86 UDISPCTX_DIALECT_NAMES = (UDISPCTX_TYPE_DIALECT_HANDLING<<8) + 1,
100 UDISPCTX_CAPITALIZATION_NONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 0,
106 UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 1,
112 UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 2,
118 UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 3,
125 UDISPCTX_CAPITALIZATION_FOR_STANDALONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 4,
138 UDISPCTX_LENGTH_FULL = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 0,
145 UDISPCTX_LENGTH_SHORT = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 1,
146 #ifndef U_HIDE_DRAFT_API
159 UDISPCTX_SUBSTITUTE = (UDISPCTX_TYPE_SUBSTITUTE_HANDLING<<8) + 0,
165 UDISPCTX_NO_SUBSTITUTE = (UDISPCTX_TYPE_SUBSTITUTE_HANDLING<<8) + 1
166 #endif /* U_HIDE_DRAFT_API */
167
168 };
172 typedef enum UDisplayContext UDisplayContext;
173
174 #endif /* #if !UCONFIG_NO_FORMATTING */
175
176 #endif
UDISPCTX_LENGTH_FULL
DISPLAY_LENGTH can be set to one of UDISPCTX_LENGTH_FULL or UDISPCTX_LENGTH_SHORT.
Definition: udisplaycontext.h:138
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:106
U_HIDE_DRAFT_API
#define U_HIDE_DRAFT_API
Define this to 1 to request that draft API be "hidden".
Definition: utypes.h:84
UDisplayContext
UDisplayContext
Display context settings.
Definition: udisplaycontext.h:66
UDISPCTX_STANDARD_NAMES
DIALECT_HANDLING can be set to one of UDISPCTX_STANDARD_NAMES or UDISPCTX_DIALECT_NAMES.
Definition: udisplaycontext.h:79
UDISPCTX_CAPITALIZATION_NONE
CAPITALIZATION can be set to one of UDISPCTX_CAPITALIZATION_NONE, UDISPCTX_CAPITALIZATION_FOR_MIDDLE...
Definition: udisplaycontext.h:100
UDISPCTX_TYPE_CAPITALIZATION
Type to retrieve the capitalization context setting, e.g.
Definition: udisplaycontext.h:40
UDISPCTX_DIALECT_NAMES
A possible setting for DIALECT_HANDLING: use dialect names, when generating a locale name...
Definition: udisplaycontext.h:86
UDISPCTX_LENGTH_SHORT
A possible setting for DISPLAY_LENGTH: use short names when generating a locale name, e.g.
Definition: udisplaycontext.h:145
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:118
UDISPCTX_NO_SUBSTITUTE
A possible setting for SUBSTITUTE_HANDLING: Returns a null value when no data is available.
Definition: udisplaycontext.h:165
UDISPCTX_TYPE_DISPLAY_LENGTH
Type to retrieve the display length setting, e.g.
Definition: udisplaycontext.h:46
UDisplayContextType
UDisplayContextType
Display context types, for getting values of a particular setting.
Definition: udisplaycontext.h:27
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:112
UDISPCTX_SUBSTITUTE
SUBSTITUTE_HANDLING can be set to one of UDISPCTX_SUBSTITUTE or UDISPCTX_NO_SUBSTITUTE.
Definition: udisplaycontext.h:159
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:125
UDISPCTX_TYPE_DIALECT_HANDLING
Type to retrieve the dialect handling setting, e.g.
Definition: udisplaycontext.h:33
UDISPCTX_TYPE_SUBSTITUTE_HANDLING
Type to retrieve the substitute handling setting, e.g.
Definition: udisplaycontext.h:53