OLD | NEW |
1 /* | 1 /* |
2 ********************************************************************************
********* | 2 ********************************************************************************
********* |
3 * Copyright (C) 2014, International Business Machines | 3 * Copyright (C) 2014-2015, International Business Machines |
4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
5 ********************************************************************************
********* | 5 ********************************************************************************
********* |
6 */ | 6 */ |
7 | 7 |
8 #ifndef UDISPLAYCONTEXT_H | 8 #ifndef UDISPLAYCONTEXT_H |
9 #define UDISPLAYCONTEXT_H | 9 #define UDISPLAYCONTEXT_H |
10 | 10 |
11 #include "unicode/utypes.h" | 11 #include "unicode/utypes.h" |
12 | 12 |
13 #if !UCONFIG_NO_FORMATTING | 13 #if !UCONFIG_NO_FORMATTING |
(...skipping 14 matching lines...) Expand all Loading... |
28 * UDISPCTX_STANDARD_NAMES or UDISPCTX_DIALECT_NAMES. | 28 * UDISPCTX_STANDARD_NAMES or UDISPCTX_DIALECT_NAMES. |
29 * @stable ICU 51 | 29 * @stable ICU 51 |
30 */ | 30 */ |
31 UDISPCTX_TYPE_DIALECT_HANDLING = 0, | 31 UDISPCTX_TYPE_DIALECT_HANDLING = 0, |
32 /** | 32 /** |
33 * Type to retrieve the capitalization context setting, e.g. | 33 * Type to retrieve the capitalization context setting, e.g. |
34 * UDISPCTX_CAPITALIZATION_NONE, UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTE
NCE, | 34 * UDISPCTX_CAPITALIZATION_NONE, UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTE
NCE, |
35 * UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE, etc. | 35 * UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE, etc. |
36 * @stable ICU 51 | 36 * @stable ICU 51 |
37 */ | 37 */ |
38 UDISPCTX_TYPE_CAPITALIZATION = 1 | 38 UDISPCTX_TYPE_CAPITALIZATION = 1, |
39 #ifndef U_HIDE_DRAFT_API | |
40 , | |
41 /** | 39 /** |
42 * Type to retrieve the display length setting, e.g. | 40 * Type to retrieve the display length setting, e.g. |
43 * UDISPCTX_LENGTH_FULL, UDISPCTX_LENGTH_SHORT. | 41 * UDISPCTX_LENGTH_FULL, UDISPCTX_LENGTH_SHORT. |
44 * @draft ICU 54 | 42 * @stable ICU 54 |
45 */ | 43 */ |
46 UDISPCTX_TYPE_DISPLAY_LENGTH = 2 | 44 UDISPCTX_TYPE_DISPLAY_LENGTH = 2 |
47 #endif /* U_HIDE_DRAFT_API */ | |
48 }; | 45 }; |
49 /** | 46 /** |
50 * @stable ICU 51 | 47 * @stable ICU 51 |
51 */ | 48 */ |
52 typedef enum UDisplayContextType UDisplayContextType; | 49 typedef enum UDisplayContextType UDisplayContextType; |
53 | 50 |
54 /** | 51 /** |
55 * Display context settings. | 52 * Display context settings. |
56 * Note, the specific numeric values are internal and may change. | 53 * Note, the specific numeric values are internal and may change. |
57 * @stable ICU 51 | 54 * @stable ICU 51 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 * formatted with capitalization appropriate for a user-interface list or me
nu item. | 105 * formatted with capitalization appropriate for a user-interface list or me
nu item. |
109 * @stable ICU 51 | 106 * @stable ICU 51 |
110 */ | 107 */ |
111 UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU = (UDISPCTX_TYPE_CAPITALIZATION<
<8) + 3, | 108 UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU = (UDISPCTX_TYPE_CAPITALIZATION<
<8) + 3, |
112 /** | 109 /** |
113 * The capitalization context if a date, date symbol or display name is to b
e | 110 * The capitalization context if a date, date symbol or display name is to b
e |
114 * formatted with capitalization appropriate for stand-alone usage such as a
n | 111 * formatted with capitalization appropriate for stand-alone usage such as a
n |
115 * isolated name on a calendar page. | 112 * isolated name on a calendar page. |
116 * @stable ICU 51 | 113 * @stable ICU 51 |
117 */ | 114 */ |
118 UDISPCTX_CAPITALIZATION_FOR_STANDALONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) +
4 | 115 UDISPCTX_CAPITALIZATION_FOR_STANDALONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) +
4, |
119 #ifndef U_HIDE_DRAFT_API | |
120 , | |
121 /** | 116 /** |
122 * ================================ | 117 * ================================ |
123 * DISPLAY_LENGTH can be set to one of UDISPCTX_LENGTH_FULL or | 118 * DISPLAY_LENGTH can be set to one of UDISPCTX_LENGTH_FULL or |
124 * UDISPCTX_LENGTH_SHORT. Use UDisplayContextType UDISPCTX_TYPE_DISPLAY_LENG
TH | 119 * UDISPCTX_LENGTH_SHORT. Use UDisplayContextType UDISPCTX_TYPE_DISPLAY_LENG
TH |
125 * to get the value. | 120 * to get the value. |
126 */ | 121 */ |
127 /** | 122 /** |
128 * A possible setting for DISPLAY_LENGTH: | 123 * A possible setting for DISPLAY_LENGTH: |
129 * use full names when generating a locale name, | 124 * use full names when generating a locale name, |
130 * e.g. "United States" for US. | 125 * e.g. "United States" for US. |
131 * @draft ICU 54 | 126 * @stable ICU 54 |
132 */ | 127 */ |
133 UDISPCTX_LENGTH_FULL = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 0, | 128 UDISPCTX_LENGTH_FULL = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 0, |
134 /** | 129 /** |
135 * A possible setting for DISPLAY_LENGTH: | 130 * A possible setting for DISPLAY_LENGTH: |
136 * use short names when generating a locale name, | 131 * use short names when generating a locale name, |
137 * e.g. "U.S." for US. | 132 * e.g. "U.S." for US. |
138 * @draft ICU 54 | 133 * @stable ICU 54 |
139 */ | 134 */ |
140 UDISPCTX_LENGTH_SHORT = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 1 | 135 UDISPCTX_LENGTH_SHORT = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 1 |
141 #endif /* U_HIDE_DRAFT_API */ | |
142 }; | 136 }; |
143 /** | 137 /** |
144 * @stable ICU 51 | 138 * @stable ICU 51 |
145 */ | 139 */ |
146 typedef enum UDisplayContext UDisplayContext; | 140 typedef enum UDisplayContext UDisplayContext; |
147 | 141 |
148 #endif /* #if !UCONFIG_NO_FORMATTING */ | 142 #endif /* #if !UCONFIG_NO_FORMATTING */ |
149 | 143 |
150 #endif | 144 #endif |
OLD | NEW |