/*
**********************************************************************
-* Copyright (C) 1997-2014, International Business Machines
+* Copyright (C) 1997-2016, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
*
/**
* Gets the country name suitable for display for the specified locale.
+ * Warning: this is for the region part of a valid locale ID; it cannot just be the region code (like "FR").
+ * To get the display name for a region alone, or for other options, use ULocaleDisplayNames instead.
*
* @param locale the locale to get the displayable country code with. NULL may be used to specify the default.
* @param displayLocale Specifies the locale to be used to display the name. In other words,
/**
*
- * Gets a list of all available 2-letter country codes defined in ISO 639. This is a
- * pointer to an array of pointers to arrays of char. All of these pointers are
- * owned by ICU-- do not delete them, and do not write through them. The array is
- * terminated with a null pointer.
+ * Gets a list of all available 2-letter country codes which are valid regular
+ * region codes in CLDR; these are based on the non-deprecated alpha-2 region
+ * codes in ISO 3166-1. The return value is a pointer to an array of pointers
+ * C strings. All of these pointers are owned by ICU; do not delete them, and
+ * do not write through them. The array is terminated with a null pointer.
* @return a list of all available country codes
* @stable ICU 2.0
*/
char* buffer, int32_t bufferCapacity,
UErrorCode* status);
-#ifndef U_HIDE_DRAFT_API
/**
* Returns whether the locale's script is written right-to-left.
* If there is no script subtag, then the likely script is used, see uloc_addLikelySubtags().
*
* @param locale input locale ID
* @return TRUE if the locale's script is written right-to-left
- * @draft ICU 54
+ * @stable ICU 54
*/
-U_DRAFT UBool U_EXPORT2
+U_STABLE UBool U_EXPORT2
uloc_isRightToLeft(const char *locale);
-#endif /* U_HIDE_DRAFT_API */
/**
* enums for the return value for the character and line orientation
UBool strict,
UErrorCode* err);
-#ifndef U_HIDE_DRAFT_API
/**
* Converts the specified keyword (legacy key, or BCP 47 Unicode locale
* extension key) to the equivalent BCP 47 Unicode locale extension key.
* mapped to a well-formed BCP 47 Unicode locale extension
* key.
* @see uloc_toLegacyKey
- * @draft ICU 54
+ * @stable ICU 54
*/
-U_DRAFT const char* U_EXPORT2
+U_STABLE const char* U_EXPORT2
uloc_toUnicodeLocaleKey(const char* keyword);
/**
* or NULL if the locale keyword value cannot be mapped to
* a well-formed BCP 47 Unicode locale extension type.
* @see uloc_toLegacyType
- * @draft ICU 54
+ * @stable ICU 54
*/
-U_DRAFT const char* U_EXPORT2
+U_STABLE const char* U_EXPORT2
uloc_toUnicodeLocaleType(const char* keyword, const char* value);
/**
* @return the well-formed legacy key, or NULL if the specified
* keyword cannot be mapped to a well-formed legacy key.
* @see toUnicodeLocaleKey
- * @draft ICU 54
+ * @stable ICU 54
*/
-U_DRAFT const char* U_EXPORT2
+U_STABLE const char* U_EXPORT2
uloc_toLegacyKey(const char* keyword);
/**
* keyword value cannot be mapped to a well-formed legacy
* type.
* @see toUnicodeLocaleType
- * @draft ICU 54
+ * @stable ICU 54
*/
-U_DRAFT const char* U_EXPORT2
+U_STABLE const char* U_EXPORT2
uloc_toLegacyType(const char* keyword, const char* value);
-#endif /* U_HIDE_DRAFT_API */
-
#endif /*_ULOC*/