ICU 49.1.1  49.1.1
uldnames.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************
3 * Copyright (C) 2010, 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 
24 typedef enum {
38 
43 struct ULocaleDisplayNames;
44 
50 
51 #if !UCONFIG_NO_FORMATTING
52 
65 U_STABLE ULocaleDisplayNames * U_EXPORT2
66 uldn_open(const char * locale,
67  UDialectHandling dialectHandling,
68  UErrorCode *pErrorCode);
69 
75 U_STABLE void U_EXPORT2
77 
78 #if U_SHOW_CPLUSPLUS_API
79 
81 
91 U_DEFINE_LOCAL_OPEN_POINTER(LocalULocaleDisplayNamesPointer, ULocaleDisplayNames, uldn_close);
92 
94 
95 #endif
96 
97 /* getters for state */
98 
106 U_STABLE const char * U_EXPORT2
108 
115 U_STABLE UDialectHandling U_EXPORT2
117 
118 /* names for entire locales */
119 
131 U_STABLE int32_t U_EXPORT2
133  const char *locale,
134  UChar *result,
135  int32_t maxResultSize,
136  UErrorCode *pErrorCode);
137 
138 /* names for components of a locale */
139 
151 U_STABLE int32_t U_EXPORT2
153  const char *lang,
154  UChar *result,
155  int32_t maxResultSize,
156  UErrorCode *pErrorCode);
157 
169 U_STABLE int32_t U_EXPORT2
171  const char *script,
172  UChar *result,
173  int32_t maxResultSize,
174  UErrorCode *pErrorCode);
175 
187 U_STABLE int32_t U_EXPORT2
189  UScriptCode scriptCode,
190  UChar *result,
191  int32_t maxResultSize,
192  UErrorCode *pErrorCode);
193 
205 U_STABLE int32_t U_EXPORT2
207  const char *region,
208  UChar *result,
209  int32_t maxResultSize,
210  UErrorCode *pErrorCode);
211 
223 U_STABLE int32_t U_EXPORT2
225  const char *variant,
226  UChar *result,
227  int32_t maxResultSize,
228  UErrorCode *pErrorCode);
229 
241 U_STABLE int32_t U_EXPORT2
243  const char *key,
244  UChar *result,
245  int32_t maxResultSize,
246  UErrorCode *pErrorCode);
247 
260 U_STABLE int32_t U_EXPORT2
262  const char *key,
263  const char *value,
264  UChar *result,
265  int32_t maxResultSize,
266  UErrorCode *pErrorCode);
267 
268 
269 #endif /* !UCONFIG_NO_FORMATTING */
270 #endif /* __ULDNAMES_H__ */