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
udisplaycontext.h
Go to the documentation of this file.
1 /*
2 *****************************************************************************************
3 * Copyright (C) 2014, 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
39 #ifndef U_HIDE_DRAFT_API
40 ,
46 UDISPCTX_TYPE_DISPLAY_LENGTH = 2
47 #endif /* U_HIDE_DRAFT_API */
48 };
52 typedef enum UDisplayContextType UDisplayContextType;
53
59 enum UDisplayContext {
72 UDISPCTX_STANDARD_NAMES = (UDISPCTX_TYPE_DIALECT_HANDLING<<8) + 0,
79 UDISPCTX_DIALECT_NAMES = (UDISPCTX_TYPE_DIALECT_HANDLING<<8) + 1,
93 UDISPCTX_CAPITALIZATION_NONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 0,
99 UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 1,
105 UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 2,
111 UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 3,
118 UDISPCTX_CAPITALIZATION_FOR_STANDALONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 4
119 #ifndef U_HIDE_DRAFT_API
120 ,
133 UDISPCTX_LENGTH_FULL = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 0,
140 UDISPCTX_LENGTH_SHORT = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 1
141 #endif /* U_HIDE_DRAFT_API */
142 };
146 typedef enum UDisplayContext UDisplayContext;
147
148 #endif /* #if !UCONFIG_NO_FORMATTING */
149
150 #endif