| OLD | NEW |
| 1 /* | 1 /* |
| 2 ******************************************************************************* | 2 ******************************************************************************* |
| 3 * Copyright (C) 2010-2012, International Business Machines Corporation and
* | 3 * Copyright (C) 2010-2014, International Business Machines Corporation and
* |
| 4 * others. All Rights Reserved. * | 4 * others. All Rights Reserved. * |
| 5 ******************************************************************************* | 5 ******************************************************************************* |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef __ULDNAMES_H__ | 8 #ifndef __ULDNAMES_H__ |
| 9 #define __ULDNAMES_H__ | 9 #define __ULDNAMES_H__ |
| 10 | 10 |
| 11 /** | 11 /** |
| 12 * \file | 12 * \file |
| 13 * \brief C API: Provides display names of Locale ids and their components. | 13 * \brief C API: Provides display names of Locale ids and their components. |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 * @stable ICU 4.4 | 259 * @stable ICU 4.4 |
| 260 */ | 260 */ |
| 261 U_STABLE int32_t U_EXPORT2 | 261 U_STABLE int32_t U_EXPORT2 |
| 262 uldn_keyValueDisplayName(const ULocaleDisplayNames *ldn, | 262 uldn_keyValueDisplayName(const ULocaleDisplayNames *ldn, |
| 263 const char *key, | 263 const char *key, |
| 264 const char *value, | 264 const char *value, |
| 265 UChar *result, | 265 UChar *result, |
| 266 int32_t maxResultSize, | 266 int32_t maxResultSize, |
| 267 UErrorCode *pErrorCode); | 267 UErrorCode *pErrorCode); |
| 268 | 268 |
| 269 #ifndef U_HIDE_DRAFT_API | |
| 270 /** | 269 /** |
| 271 * Returns an instance of LocaleDisplayNames that returns names formatted | 270 * Returns an instance of LocaleDisplayNames that returns names formatted |
| 272 * for the provided locale, using the provided UDisplayContext settings. | 271 * for the provided locale, using the provided UDisplayContext settings. |
| 273 * | 272 * |
| 274 * @param locale The display locale | 273 * @param locale The display locale |
| 275 * @param contexts List of one or more context settings (e.g. for dialect | 274 * @param contexts List of one or more context settings (e.g. for dialect |
| 276 * handling, capitalization, etc. | 275 * handling, capitalization, etc. |
| 277 * @param length Number of items in the contexts list | 276 * @param length Number of items in the contexts list |
| 278 * @param pErrorCode Pointer to UErrorCode input/output status. If at entry this
indicates | 277 * @param pErrorCode Pointer to UErrorCode input/output status. If at entry this
indicates |
| 279 * a failure status, the function will do nothing; otherwise this w
ill be | 278 * a failure status, the function will do nothing; otherwise this w
ill be |
| 280 * updated with any new status from the function. | 279 * updated with any new status from the function. |
| 281 * @return a ULocaleDisplayNames instance | 280 * @return a ULocaleDisplayNames instance |
| 282 * @draft ICU 51 | 281 * @stable ICU 51 |
| 283 */ | 282 */ |
| 284 U_DRAFT ULocaleDisplayNames * U_EXPORT2 | 283 U_STABLE ULocaleDisplayNames * U_EXPORT2 |
| 285 uldn_openForContext(const char * locale, UDisplayContext *contexts, | 284 uldn_openForContext(const char * locale, UDisplayContext *contexts, |
| 286 int32_t length, UErrorCode *pErrorCode); | 285 int32_t length, UErrorCode *pErrorCode); |
| 287 | 286 |
| 288 /** | 287 /** |
| 289 * Returns the UDisplayContext value for the specified UDisplayContextType. | 288 * Returns the UDisplayContext value for the specified UDisplayContextType. |
| 290 * @param ldn the ULocaleDisplayNames instance | 289 * @param ldn the ULocaleDisplayNames instance |
| 291 * @param type the UDisplayContextType whose value to return | 290 * @param type the UDisplayContextType whose value to return |
| 292 * @param pErrorCode Pointer to UErrorCode input/output status. If at entry this
indicates | 291 * @param pErrorCode Pointer to UErrorCode input/output status. If at entry this
indicates |
| 293 * a failure status, the function will do nothing; otherwise this w
ill be | 292 * a failure status, the function will do nothing; otherwise this w
ill be |
| 294 * updated with any new status from the function. | 293 * updated with any new status from the function. |
| 295 * @return the UDisplayContextValue for the specified type. | 294 * @return the UDisplayContextValue for the specified type. |
| 296 * @draft ICU 51 | 295 * @stable ICU 51 |
| 297 */ | 296 */ |
| 298 U_DRAFT UDisplayContext U_EXPORT2 | 297 U_STABLE UDisplayContext U_EXPORT2 |
| 299 uldn_getContext(const ULocaleDisplayNames *ldn, UDisplayContextType type, | 298 uldn_getContext(const ULocaleDisplayNames *ldn, UDisplayContextType type, |
| 300 UErrorCode *pErrorCode); | 299 UErrorCode *pErrorCode); |
| 301 | 300 |
| 302 #endif /* U_HIDE_DRAFT_API */ | |
| 303 | |
| 304 #endif /* !UCONFIG_NO_FORMATTING */ | 301 #endif /* !UCONFIG_NO_FORMATTING */ |
| 305 #endif /* __ULDNAMES_H__ */ | 302 #endif /* __ULDNAMES_H__ */ |
| OLD | NEW |