ICU 51.2  51.2
uldnames.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************
3 * Copyright (C) 2010-2012, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 *******************************************************************************
6 */
7 
8 #ifndef __ULDNAMES_H__
9 #define __ULDNAMES_H__
10 
16 #include "unicode/utypes.h"
17 #include "unicode/localpointer.h"
18 #include "unicode/uscript.h"
19 #include "unicode/udisplaycontext.h"
20 
25 typedef enum {
39 
44 struct ULocaleDisplayNames;
45 
51 
52 #if !UCONFIG_NO_FORMATTING
53 
66 U_STABLE ULocaleDisplayNames * U_EXPORT2
67 uldn_open(const char * locale,
68  UDialectHandling dialectHandling,
69  UErrorCode *pErrorCode);
70 
76 U_STABLE void U_EXPORT2
78 
79 #if U_SHOW_CPLUSPLUS_API
80 
82 
93 
95 
96 #endif
97 
98 /* getters for state */
99 
107 U_STABLE const char * U_EXPORT2
109 
116 U_STABLE UDialectHandling U_EXPORT2
118 
119 /* names for entire locales */
120 
132 U_STABLE int32_t U_EXPORT2
134  const char *locale,
135  UChar *result,
136  int32_t maxResultSize,
137  UErrorCode *pErrorCode);
138 
139 /* names for components of a locale */
140 
152 U_STABLE int32_t U_EXPORT2
154  const char *lang,
155  UChar *result,
156  int32_t maxResultSize,
157  UErrorCode *pErrorCode);
158 
170 U_STABLE int32_t U_EXPORT2
172  const char *script,
173  UChar *result,
174  int32_t maxResultSize,
175  UErrorCode *pErrorCode);
176 
188 U_STABLE int32_t U_EXPORT2
190  UScriptCode scriptCode,
191  UChar *result,
192  int32_t maxResultSize,
193  UErrorCode *pErrorCode);
194 
206 U_STABLE int32_t U_EXPORT2
208  const char *region,
209  UChar *result,
210  int32_t maxResultSize,
211  UErrorCode *pErrorCode);
212 
224 U_STABLE int32_t U_EXPORT2
226  const char *variant,
227  UChar *result,
228  int32_t maxResultSize,
229  UErrorCode *pErrorCode);
230 
242 U_STABLE int32_t U_EXPORT2
244  const char *key,
245  UChar *result,
246  int32_t maxResultSize,
247  UErrorCode *pErrorCode);
248 
261 U_STABLE int32_t U_EXPORT2
263  const char *key,
264  const char *value,
265  UChar *result,
266  int32_t maxResultSize,
267  UErrorCode *pErrorCode);
268 
269 #ifndef U_HIDE_DRAFT_API
270 
284 U_DRAFT ULocaleDisplayNames * U_EXPORT2
285 uldn_openForContext(const char * locale, UDisplayContext *contexts,
286  int32_t length, UErrorCode *pErrorCode);
287 
298 U_DRAFT UDisplayContext U_EXPORT2
299 uldn_getContext(const ULocaleDisplayNames *ldn, UDisplayContextType type,
300  UErrorCode *pErrorCode);
301 
302 #endif /* U_HIDE_DRAFT_API */
303 
304 #endif /* !UCONFIG_NO_FORMATTING */
305 #endif /* __ULDNAMES_H__ */