X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/57a6839dcb3bba09e8228b822b290604668416fe..f3c0d7a59d99c2a94c6b8822291f0e42be3773c9:/icuSources/i18n/unicode/unumsys.h diff --git a/icuSources/i18n/unicode/unumsys.h b/icuSources/i18n/unicode/unumsys.h index 026463e8..0ae8e47a 100644 --- a/icuSources/i18n/unicode/unumsys.h +++ b/icuSources/i18n/unicode/unumsys.h @@ -1,6 +1,8 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /* ***************************************************************************************** -* Copyright (C) 2013, International Business Machines +* Copyright (C) 2013-2014, International Business Machines * Corporation and others. All Rights Reserved. ***************************************************************************************** */ @@ -34,14 +36,12 @@ * numbers locale keyword. */ -#ifndef U_HIDE_DRAFT_API - /** * Opaque UNumberingSystem object for use in C programs. - * @draft ICU 52 + * @stable ICU 52 */ struct UNumberingSystem; -typedef struct UNumberingSystem UNumberingSystem; /**< C typedef for struct UNumberingSystem. @draft ICU 52 */ +typedef struct UNumberingSystem UNumberingSystem; /**< C typedef for struct UNumberingSystem. @stable ICU 52 */ /** * Opens a UNumberingSystem object using the default numbering system for the specified @@ -52,9 +52,9 @@ typedef struct UNumberingSystem UNumberingSystem; /**< C typedef for struct UNu * specifies a numbering system unknown to ICU. * @return A UNumberingSystem for the specified locale, or NULL if an error * occurred. - * @draft ICU 52 + * @stable ICU 52 */ -U_DRAFT UNumberingSystem * U_EXPORT2 +U_STABLE UNumberingSystem * U_EXPORT2 unumsys_open(const char *locale, UErrorCode *status); /** @@ -73,17 +73,17 @@ unumsys_open(const char *locale, UErrorCode *status); * is unknown to ICU. * @return A UNumberingSystem for the specified name, or NULL if an error * occurred. - * @draft ICU 52 + * @stable ICU 52 */ -U_DRAFT UNumberingSystem * U_EXPORT2 +U_STABLE UNumberingSystem * U_EXPORT2 unumsys_openByName(const char *name, UErrorCode *status); /** * Close a UNumberingSystem object. Once closed it may no longer be used. * @param unumsys The UNumberingSystem object to close. - * @draft ICU 52 + * @stable ICU 52 */ -U_DRAFT void U_EXPORT2 +U_STABLE void U_EXPORT2 unumsys_close(UNumberingSystem *unumsys); #if U_SHOW_CPLUSPLUS_API @@ -95,12 +95,12 @@ U_NAMESPACE_BEGIN * For most methods see the LocalPointerBase base class. * @see LocalPointerBase * @see LocalPointer - * @draft ICU 52 + * @stable ICU 52 */ U_DEFINE_LOCAL_OPEN_POINTER(LocalUNumberingSystemPointer, UNumberingSystem, unumsys_close); U_NAMESPACE_END -#endif +#endif // U_SHOW_CPLUSPLUS_API /** * Returns an enumeration over the names of all of the predefined numbering systems known @@ -108,9 +108,9 @@ U_NAMESPACE_END * @param status A pointer to a UErrorCode to receive any errors. * @return A pointer to a UEnumeration that must be closed with uenum_close(), * or NULL if an error occurred. - * @draft ICU 52 + * @stable ICU 52 */ -U_DRAFT UEnumeration * U_EXPORT2 +U_STABLE UEnumeration * U_EXPORT2 unumsys_openAvailableNames(UErrorCode *status); /** @@ -120,9 +120,9 @@ unumsys_openAvailableNames(UErrorCode *status); * @return A pointer to the name of the specified UNumberingSystem object, or * NULL if the name is not one of the ICU predefined names. The pointer * is only valid for the lifetime of the UNumberingSystem object. - * @draft ICU 52 + * @stable ICU 52 */ -U_DRAFT const char * U_EXPORT2 +U_STABLE const char * U_EXPORT2 unumsys_getName(const UNumberingSystem *unumsys); /** @@ -131,9 +131,9 @@ unumsys_getName(const UNumberingSystem *unumsys); * @param unumsys The UNumberingSystem whose algorithmic status is desired. * @return TRUE if the specified UNumberingSystem object is for an algorithmic * system. - * @draft ICU 52 + * @stable ICU 52 */ -U_DRAFT UBool U_EXPORT2 +U_STABLE UBool U_EXPORT2 unumsys_isAlgorithmic(const UNumberingSystem *unumsys); /** @@ -142,9 +142,9 @@ unumsys_isAlgorithmic(const UNumberingSystem *unumsys); * hexadecimal. The radix is less well-defined for non-positional algorithmic systems. * @param unumsys The UNumberingSystem whose radix is desired. * @return The radix of the specified UNumberingSystem object. - * @draft ICU 52 + * @stable ICU 52 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 unumsys_getRadix(const UNumberingSystem *unumsys); /** @@ -161,14 +161,12 @@ unumsys_getRadix(const UNumberingSystem *unumsys); * @param status A pointer to a UErrorCode to receive any errors. * @return The total buffer size needed; if greater than resultLength, the * output was truncated. - * @draft ICU 52 + * @stable ICU 52 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 unumsys_getDescription(const UNumberingSystem *unumsys, UChar *result, int32_t resultLength, UErrorCode *status); -#endif /* U_HIDE_DRAFT_API */ - #endif /* #if !UCONFIG_NO_FORMATTING */ #endif