From: Peter Edberg Date: Mon, 8 Oct 2012 05:16:32 +0000 (+0000) Subject: ICU-9623 ICU4C 50 API promotions, fix U_DRAFT -> U_STABLE as needed in .h, fix U_DRAF... X-Git-Tag: milestone-59-0-1~3471 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b72359eca526071aea85fbebeb81ca18b2b7cbe0;p=icu ICU-9623 ICU4C 50 API promotions, fix U_DRAFT -> U_STABLE as needed in .h, fix U_DRAFT -> U_CAPI in .c/cpp X-SVN-Rev: 32547 --- diff --git a/icu4c/source/common/filterednormalizer2.cpp b/icu4c/source/common/filterednormalizer2.cpp index 92e4e731bf2..44ed9c13a02 100644 --- a/icu4c/source/common/filterednormalizer2.cpp +++ b/icu4c/source/common/filterednormalizer2.cpp @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 2009-2011, International Business Machines +* Copyright (C) 2009-2012, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -268,7 +268,7 @@ U_NAMESPACE_END U_NAMESPACE_USE -U_DRAFT UNormalizer2 * U_EXPORT2 +U_CAPI UNormalizer2 * U_EXPORT2 unorm2_openFiltered(const UNormalizer2 *norm2, const USet *filterSet, UErrorCode *pErrorCode) { if(U_FAILURE(*pErrorCode)) { return NULL; diff --git a/icu4c/source/common/loclikely.cpp b/icu4c/source/common/loclikely.cpp index 1d2c251ebde..6fbf873bdef 100644 --- a/icu4c/source/common/loclikely.cpp +++ b/icu4c/source/common/loclikely.cpp @@ -1226,7 +1226,7 @@ do_canonicalize(const char* localeID, } } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uloc_addLikelySubtags(const char* localeID, char* maximizedLocaleID, int32_t maximizedLocaleIDCapacity, @@ -1250,7 +1250,7 @@ uloc_addLikelySubtags(const char* localeID, } } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uloc_minimizeSubtags(const char* localeID, char* minimizedLocaleID, int32_t minimizedLocaleIDCapacity, diff --git a/icu4c/source/common/locresdata.cpp b/icu4c/source/common/locresdata.cpp index 2c601c28c88..68996f2465b 100644 --- a/icu4c/source/common/locresdata.cpp +++ b/icu4c/source/common/locresdata.cpp @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 1997-2010, International Business Machines +* Copyright (C) 1997-2012, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -201,7 +201,7 @@ _uloc_getOrientationHelper(const char* localeId, return result; } -U_DRAFT ULayoutType U_EXPORT2 +U_CAPI ULayoutType U_EXPORT2 uloc_getCharacterOrientation(const char* localeId, UErrorCode *status) { @@ -214,9 +214,8 @@ uloc_getCharacterOrientation(const char* localeId, * @param localeID locale name * @param status Error status * @return an enum indicating the layout orientation for lines. - * @stable ICU 4.0 */ -U_DRAFT ULayoutType U_EXPORT2 +U_CAPI ULayoutType U_EXPORT2 uloc_getLineOrientation(const char* localeId, UErrorCode *status) { diff --git a/icu4c/source/common/normalizer2.cpp b/icu4c/source/common/normalizer2.cpp index 527731da6c4..c78d0a7610b 100644 --- a/icu4c/source/common/normalizer2.cpp +++ b/icu4c/source/common/normalizer2.cpp @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 2009-2011, International Business Machines +* Copyright (C) 2009-2012, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -707,32 +707,32 @@ U_NAMESPACE_END U_NAMESPACE_USE -U_DRAFT const UNormalizer2 * U_EXPORT2 +U_CAPI const UNormalizer2 * U_EXPORT2 unorm2_getNFCInstance(UErrorCode *pErrorCode) { return (const UNormalizer2 *)Normalizer2::getNFCInstance(*pErrorCode); } -U_DRAFT const UNormalizer2 * U_EXPORT2 +U_CAPI const UNormalizer2 * U_EXPORT2 unorm2_getNFDInstance(UErrorCode *pErrorCode) { return (const UNormalizer2 *)Normalizer2::getNFDInstance(*pErrorCode); } -U_DRAFT const UNormalizer2 * U_EXPORT2 +U_CAPI const UNormalizer2 * U_EXPORT2 unorm2_getNFKCInstance(UErrorCode *pErrorCode) { return (const UNormalizer2 *)Normalizer2::getNFKCInstance(*pErrorCode); } -U_DRAFT const UNormalizer2 * U_EXPORT2 +U_CAPI const UNormalizer2 * U_EXPORT2 unorm2_getNFKDInstance(UErrorCode *pErrorCode) { return (const UNormalizer2 *)Normalizer2::getNFKDInstance(*pErrorCode); } -U_DRAFT const UNormalizer2 * U_EXPORT2 +U_CAPI const UNormalizer2 * U_EXPORT2 unorm2_getNFKCCasefoldInstance(UErrorCode *pErrorCode) { return (const UNormalizer2 *)Normalizer2::getNFKCCasefoldInstance(*pErrorCode); } -U_DRAFT const UNormalizer2 * U_EXPORT2 +U_CAPI const UNormalizer2 * U_EXPORT2 unorm2_getInstance(const char *packageName, const char *name, UNormalization2Mode mode, @@ -740,12 +740,12 @@ unorm2_getInstance(const char *packageName, return (const UNormalizer2 *)Normalizer2::getInstance(packageName, name, mode, *pErrorCode); } -U_DRAFT void U_EXPORT2 +U_CAPI void U_EXPORT2 unorm2_close(UNormalizer2 *norm2) { delete (Normalizer2 *)norm2; } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 unorm2_normalize(const UNormalizer2 *norm2, const UChar *src, int32_t length, UChar *dest, int32_t capacity, @@ -835,7 +835,7 @@ normalizeSecondAndAppend(const UNormalizer2 *norm2, return firstString.extract(first, firstCapacity, *pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 unorm2_normalizeSecondAndAppend(const UNormalizer2 *norm2, UChar *first, int32_t firstLength, int32_t firstCapacity, const UChar *second, int32_t secondLength, @@ -846,7 +846,7 @@ unorm2_normalizeSecondAndAppend(const UNormalizer2 *norm2, TRUE, pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 unorm2_append(const UNormalizer2 *norm2, UChar *first, int32_t firstLength, int32_t firstCapacity, const UChar *second, int32_t secondLength, @@ -857,7 +857,7 @@ unorm2_append(const UNormalizer2 *norm2, FALSE, pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 unorm2_getDecomposition(const UNormalizer2 *norm2, UChar32 c, UChar *decomposition, int32_t capacity, UErrorCode *pErrorCode) { @@ -876,7 +876,7 @@ unorm2_getDecomposition(const UNormalizer2 *norm2, } } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 unorm2_getRawDecomposition(const UNormalizer2 *norm2, UChar32 c, UChar *decomposition, int32_t capacity, UErrorCode *pErrorCode) { @@ -895,17 +895,17 @@ unorm2_getRawDecomposition(const UNormalizer2 *norm2, } } -U_DRAFT UChar32 U_EXPORT2 +U_CAPI UChar32 U_EXPORT2 unorm2_composePair(const UNormalizer2 *norm2, UChar32 a, UChar32 b) { return reinterpret_cast(norm2)->composePair(a, b); } -U_DRAFT uint8_t U_EXPORT2 +U_CAPI uint8_t U_EXPORT2 unorm2_getCombiningClass(const UNormalizer2 *norm2, UChar32 c) { return reinterpret_cast(norm2)->getCombiningClass(c); } -U_DRAFT UBool U_EXPORT2 +U_CAPI UBool U_EXPORT2 unorm2_isNormalized(const UNormalizer2 *norm2, const UChar *s, int32_t length, UErrorCode *pErrorCode) { @@ -920,7 +920,7 @@ unorm2_isNormalized(const UNormalizer2 *norm2, return ((const Normalizer2 *)norm2)->isNormalized(sString, *pErrorCode); } -U_DRAFT UNormalizationCheckResult U_EXPORT2 +U_CAPI UNormalizationCheckResult U_EXPORT2 unorm2_quickCheck(const UNormalizer2 *norm2, const UChar *s, int32_t length, UErrorCode *pErrorCode) { @@ -935,7 +935,7 @@ unorm2_quickCheck(const UNormalizer2 *norm2, return ((const Normalizer2 *)norm2)->quickCheck(sString, *pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 unorm2_spanQuickCheckYes(const UNormalizer2 *norm2, const UChar *s, int32_t length, UErrorCode *pErrorCode) { @@ -950,17 +950,17 @@ unorm2_spanQuickCheckYes(const UNormalizer2 *norm2, return ((const Normalizer2 *)norm2)->spanQuickCheckYes(sString, *pErrorCode); } -U_DRAFT UBool U_EXPORT2 +U_CAPI UBool U_EXPORT2 unorm2_hasBoundaryBefore(const UNormalizer2 *norm2, UChar32 c) { return ((const Normalizer2 *)norm2)->hasBoundaryBefore(c); } -U_DRAFT UBool U_EXPORT2 +U_CAPI UBool U_EXPORT2 unorm2_hasBoundaryAfter(const UNormalizer2 *norm2, UChar32 c) { return ((const Normalizer2 *)norm2)->hasBoundaryAfter(c); } -U_DRAFT UBool U_EXPORT2 +U_CAPI UBool U_EXPORT2 unorm2_isInert(const UNormalizer2 *norm2, UChar32 c) { return ((const Normalizer2 *)norm2)->isInert(c); } diff --git a/icu4c/source/common/ubidi.c b/icu4c/source/common/ubidi.c index cb2dee9bf26..4a2db2a9b16 100644 --- a/icu4c/source/common/ubidi.c +++ b/icu4c/source/common/ubidi.c @@ -1,7 +1,7 @@ /* ****************************************************************************** * -* Copyright (C) 1999-2011, International Business Machines +* Copyright (C) 1999-2012, International Business Machines * Corporation and others. All Rights Reserved. * ****************************************************************************** @@ -1664,7 +1664,7 @@ adjustWSLevels(UBiDi *pBiDi) { } } -U_DRAFT void U_EXPORT2 +U_CAPI void U_EXPORT2 ubidi_setContext(UBiDi *pBiDi, const UChar *prologue, int32_t proLength, const UChar *epilogue, int32_t epiLength, diff --git a/icu4c/source/common/uchar.c b/icu4c/source/common/uchar.c index 53f92ffd6be..9a285ccddb2 100644 --- a/icu4c/source/common/uchar.c +++ b/icu4c/source/common/uchar.c @@ -571,7 +571,7 @@ uscript_getScript(UChar32 c, UErrorCode *pErrorCode) { } } -U_DRAFT UBool U_EXPORT2 +U_CAPI UBool U_EXPORT2 uscript_hasScript(UChar32 c, UScriptCode sc) { const uint16_t *scx; uint32_t scriptX=u_getUnicodeProperties(c, 0)&UPROPS_SCRIPT_X_MASK; @@ -593,7 +593,7 @@ uscript_hasScript(UChar32 c, UScriptCode sc) { return sc==(*scx&0x7fff); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uscript_getScriptExtensions(UChar32 c, UScriptCode *scripts, int32_t capacity, UErrorCode *pErrorCode) { diff --git a/icu4c/source/common/ucnv.c b/icu4c/source/common/ucnv.c index 8e5073c2e3b..f7bf5489ac3 100644 --- a/icu4c/source/common/ucnv.c +++ b/icu4c/source/common/ucnv.c @@ -2883,7 +2883,7 @@ ucnv_toUCountPending(const UConverter* cnv, UErrorCode* status){ return 0; } -U_DRAFT UBool U_EXPORT2 +U_CAPI UBool U_EXPORT2 ucnv_isFixedWidth(UConverter *cnv, UErrorCode *status){ if (U_FAILURE(*status)) { return FALSE; diff --git a/icu4c/source/common/uloc_tag.c b/icu4c/source/common/uloc_tag.c index a0ea97d722e..c7cf87ca89d 100644 --- a/icu4c/source/common/uloc_tag.c +++ b/icu4c/source/common/uloc_tag.c @@ -2614,7 +2614,7 @@ ultag_getGrandfathered(const ULanguageTag* langtag) { * * ------------------------------------------------- */ -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uloc_toLanguageTag(const char* localeID, char* langtag, int32_t langtagCapacity, @@ -2693,7 +2693,7 @@ uloc_toLanguageTag(const char* localeID, } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uloc_forLanguageTag(const char* langtag, char* localeID, int32_t localeIDCapacity, diff --git a/icu4c/source/common/unicode/ubidi.h b/icu4c/source/common/unicode/ubidi.h index 6b1f0ec6485..baf2345df25 100644 --- a/icu4c/source/common/unicode/ubidi.h +++ b/icu4c/source/common/unicode/ubidi.h @@ -1128,7 +1128,7 @@ ubidi_getReorderingOptions(UBiDi *pBiDi); * @see ubidi_setPara * @stable ICU 4.8 */ -U_DRAFT void U_EXPORT2 +U_STABLE void U_EXPORT2 ubidi_setContext(UBiDi *pBiDi, const UChar *prologue, int32_t proLength, const UChar *epilogue, int32_t epiLength, @@ -1315,7 +1315,7 @@ ubidi_getDirection(const UBiDi *pBiDi); * @see UBiDiDirection * @stable ICU 4.6 */ -U_DRAFT UBiDiDirection U_EXPORT2 +U_STABLE UBiDiDirection U_EXPORT2 ubidi_getBaseDirection(const UChar *text, int32_t length ); /** diff --git a/icu4c/source/common/unicode/uchar.h b/icu4c/source/common/unicode/uchar.h index fc82d1f28b1..6b6cded22c5 100644 --- a/icu4c/source/common/unicode/uchar.h +++ b/icu4c/source/common/unicode/uchar.h @@ -550,23 +550,19 @@ typedef enum UProperty { UCHAR_UPPERCASE_MAPPING=0x400C, /** One more than the last constant for string Unicode properties. @stable ICU 2.4 */ UCHAR_STRING_LIMIT=0x400D, - -#ifndef U_HIDE_DRAFT_API /** Provisional property Script_Extensions (new in Unicode 6.0). As a provisional property, it may be modified or removed in future versions of the Unicode Standard, and thus in ICU. Some characters are commonly used in multiple scripts. For more information, see UAX #24: http://www.unicode.org/reports/tr24/. Corresponds to uscript_hasScript and uscript_getScriptExtensions in uscript.h. - @draft ICU 4.6 */ + @stable ICU 4.6 */ UCHAR_SCRIPT_EXTENSIONS=0x7000, - /** First constant for Unicode properties with unusual value types. @draft ICU 4.6 */ + /** First constant for Unicode properties with unusual value types. @stable ICU 4.6 */ UCHAR_OTHER_PROPERTY_START=UCHAR_SCRIPT_EXTENSIONS, /** One more than the last constant for Unicode properties with unusual value types. - * @draft ICU 4.6 */ + * @stable ICU 4.6 */ UCHAR_OTHER_PROPERTY_LIMIT=0x7001, -#endif /* U_HIDE_DRAFT_API */ - /** Represents a nonexistent or invalid property or property value. @stable ICU 2.4 */ UCHAR_INVALID_CODE = -1 } UProperty; diff --git a/icu4c/source/common/unicode/ucnv.h b/icu4c/source/common/unicode/ucnv.h index 29d952c0365..183573a14fb 100644 --- a/icu4c/source/common/unicode/ucnv.h +++ b/icu4c/source/common/unicode/ucnv.h @@ -159,7 +159,7 @@ typedef enum { UCNV_CESU8, /** @stable ICU 2.4 */ UCNV_IMAP_MAILBOX, - /** @draft ICU 4.8 */ + /** @stable ICU 4.8 */ UCNV_COMPOUND_TEXT, /* Number of converter types for which we have conversion routines. */ @@ -2019,7 +2019,7 @@ ucnv_toUCountPending(const UConverter* cnv, UErrorCode* status); * @return TRUE if the converter is fixed-width * @stable ICU 4.8 */ -U_DRAFT UBool U_EXPORT2 +U_STABLE UBool U_EXPORT2 ucnv_isFixedWidth(UConverter *cnv, UErrorCode *status); #endif diff --git a/icu4c/source/common/unicode/uidna.h b/icu4c/source/common/unicode/uidna.h index e1f298b233b..6db4ed4a951 100644 --- a/icu4c/source/common/unicode/uidna.h +++ b/icu4c/source/common/unicode/uidna.h @@ -134,7 +134,7 @@ typedef struct UIDNA UIDNA; /**< C typedef for struct UIDNA. @stable ICU 4.6 */ * @return the UTS #46 UIDNA instance, if successful * @stable ICU 4.6 */ -U_DRAFT UIDNA * U_EXPORT2 +U_STABLE UIDNA * U_EXPORT2 uidna_openUTS46(uint32_t options, UErrorCode *pErrorCode); /** @@ -142,7 +142,7 @@ uidna_openUTS46(uint32_t options, UErrorCode *pErrorCode); * @param idna UIDNA instance to be closed * @stable ICU 4.6 */ -U_DRAFT void U_EXPORT2 +U_STABLE void U_EXPORT2 uidna_close(UIDNA *idna); #if U_SHOW_CPLUSPLUS_API @@ -226,7 +226,7 @@ typedef struct UIDNAInfo { * @return destination string length * @stable ICU 4.6 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 uidna_labelToASCII(const UIDNA *idna, const UChar *label, int32_t length, UChar *dest, int32_t capacity, @@ -253,7 +253,7 @@ uidna_labelToASCII(const UIDNA *idna, * @return destination string length * @stable ICU 4.6 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 uidna_labelToUnicode(const UIDNA *idna, const UChar *label, int32_t length, UChar *dest, int32_t capacity, @@ -282,7 +282,7 @@ uidna_labelToUnicode(const UIDNA *idna, * @return destination string length * @stable ICU 4.6 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 uidna_nameToASCII(const UIDNA *idna, const UChar *name, int32_t length, UChar *dest, int32_t capacity, @@ -309,7 +309,7 @@ uidna_nameToASCII(const UIDNA *idna, * @return destination string length * @stable ICU 4.6 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 uidna_nameToUnicode(const UIDNA *idna, const UChar *name, int32_t length, UChar *dest, int32_t capacity, @@ -334,7 +334,7 @@ uidna_nameToUnicode(const UIDNA *idna, * @return destination string length * @stable ICU 4.6 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 uidna_labelToASCII_UTF8(const UIDNA *idna, const char *label, int32_t length, char *dest, int32_t capacity, @@ -357,7 +357,7 @@ uidna_labelToASCII_UTF8(const UIDNA *idna, * @return destination string length * @stable ICU 4.6 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 uidna_labelToUnicodeUTF8(const UIDNA *idna, const char *label, int32_t length, char *dest, int32_t capacity, @@ -380,7 +380,7 @@ uidna_labelToUnicodeUTF8(const UIDNA *idna, * @return destination string length * @stable ICU 4.6 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 uidna_nameToASCII_UTF8(const UIDNA *idna, const char *name, int32_t length, char *dest, int32_t capacity, @@ -403,7 +403,7 @@ uidna_nameToASCII_UTF8(const UIDNA *idna, * @return destination string length * @stable ICU 4.6 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 uidna_nameToUnicodeUTF8(const UIDNA *idna, const char *name, int32_t length, char *dest, int32_t capacity, diff --git a/icu4c/source/common/unicode/uloc.h b/icu4c/source/common/unicode/uloc.h index 29c0d6523f3..15e8abd1ce1 100644 --- a/icu4c/source/common/unicode/uloc.h +++ b/icu4c/source/common/unicode/uloc.h @@ -1089,7 +1089,7 @@ uloc_minimizeSubtags(const char* localeID, * @return the length of the locale ID. * @stable ICU 4.2 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 uloc_forLanguageTag(const char* langtag, char* localeID, int32_t localeIDCapacity, @@ -1117,7 +1117,7 @@ uloc_forLanguageTag(const char* langtag, * @return The length of the BCP47 language tag. * @stable ICU 4.2 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 uloc_toLanguageTag(const char* localeID, char* langtag, int32_t langtagCapacity, diff --git a/icu4c/source/common/unicode/unorm2.h b/icu4c/source/common/unicode/unorm2.h index 1ff2cb7aa13..f419ad18b30 100644 --- a/icu4c/source/common/unicode/unorm2.h +++ b/icu4c/source/common/unicode/unorm2.h @@ -350,7 +350,7 @@ unorm2_append(const UNormalizer2 *norm2, * @return the non-negative length of c's decomposition, if there is one; otherwise a negative value * @stable ICU 4.6 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 unorm2_getDecomposition(const UNormalizer2 *norm2, UChar32 c, UChar *decomposition, int32_t capacity, UErrorCode *pErrorCode); diff --git a/icu4c/source/common/uts46.cpp b/icu4c/source/common/uts46.cpp index 3805d9b88a7..cddc039ea18 100644 --- a/icu4c/source/common/uts46.cpp +++ b/icu4c/source/common/uts46.cpp @@ -1290,12 +1290,12 @@ U_NAMESPACE_END U_NAMESPACE_USE -U_DRAFT UIDNA * U_EXPORT2 +U_CAPI UIDNA * U_EXPORT2 uidna_openUTS46(uint32_t options, UErrorCode *pErrorCode) { return reinterpret_cast(IDNA::createUTS46Instance(options, *pErrorCode)); } -U_DRAFT void U_EXPORT2 +U_CAPI void U_EXPORT2 uidna_close(UIDNA *idna) { delete reinterpret_cast(idna); } @@ -1330,7 +1330,7 @@ idnaInfoToStruct(IDNAInfo &info, UIDNAInfo *pInfo) { pInfo->errors=info.getErrors(); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uidna_labelToASCII(const UIDNA *idna, const UChar *label, int32_t length, UChar *dest, int32_t capacity, @@ -1346,7 +1346,7 @@ uidna_labelToASCII(const UIDNA *idna, return destString.extract(dest, capacity, *pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uidna_labelToUnicode(const UIDNA *idna, const UChar *label, int32_t length, UChar *dest, int32_t capacity, @@ -1362,7 +1362,7 @@ uidna_labelToUnicode(const UIDNA *idna, return destString.extract(dest, capacity, *pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uidna_nameToASCII(const UIDNA *idna, const UChar *name, int32_t length, UChar *dest, int32_t capacity, @@ -1378,7 +1378,7 @@ uidna_nameToASCII(const UIDNA *idna, return destString.extract(dest, capacity, *pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uidna_nameToUnicode(const UIDNA *idna, const UChar *name, int32_t length, UChar *dest, int32_t capacity, @@ -1394,7 +1394,7 @@ uidna_nameToUnicode(const UIDNA *idna, return destString.extract(dest, capacity, *pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uidna_labelToASCII_UTF8(const UIDNA *idna, const char *label, int32_t length, char *dest, int32_t capacity, @@ -1410,7 +1410,7 @@ uidna_labelToASCII_UTF8(const UIDNA *idna, return u_terminateChars(dest, capacity, sink.NumberOfBytesAppended(), pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uidna_labelToUnicodeUTF8(const UIDNA *idna, const char *label, int32_t length, char *dest, int32_t capacity, @@ -1426,7 +1426,7 @@ uidna_labelToUnicodeUTF8(const UIDNA *idna, return u_terminateChars(dest, capacity, sink.NumberOfBytesAppended(), pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uidna_nameToASCII_UTF8(const UIDNA *idna, const char *name, int32_t length, char *dest, int32_t capacity, @@ -1442,7 +1442,7 @@ uidna_nameToASCII_UTF8(const UIDNA *idna, return u_terminateChars(dest, capacity, sink.NumberOfBytesAppended(), pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uidna_nameToUnicodeUTF8(const UIDNA *idna, const char *name, int32_t length, char *dest, int32_t capacity, diff --git a/icu4c/source/i18n/gender.cpp b/icu4c/source/i18n/gender.cpp index 1e60fcb05f6..ed8d2a7b39f 100644 --- a/icu4c/source/i18n/gender.cpp +++ b/icu4c/source/i18n/gender.cpp @@ -230,12 +230,12 @@ const GenderInfo* GenderInfo::getMaleTaintsInstance() { U_NAMESPACE_END -U_DRAFT const UGenderInfo* U_EXPORT2 +U_CAPI const UGenderInfo* U_EXPORT2 ugender_getInstance(const char* locale, UErrorCode* status) { return (UGenderInfo*) icu::GenderInfo::getInstance(icu::Locale::createFromName(locale), *status); } -U_DRAFT UGender U_EXPORT2 +U_CAPI UGender U_EXPORT2 ugender_getListGender(const UGenderInfo* genderInfo, UGender* genders, int32_t size, UErrorCode* status) { return ((const icu::GenderInfo *)genderInfo)->getListGender(genders, size, *status); } diff --git a/icu4c/source/i18n/locdspnm.cpp b/icu4c/source/i18n/locdspnm.cpp index c7a54962b0f..5096032c169 100644 --- a/icu4c/source/i18n/locdspnm.cpp +++ b/icu4c/source/i18n/locdspnm.cpp @@ -548,7 +548,7 @@ U_NAMESPACE_END U_NAMESPACE_USE -U_DRAFT ULocaleDisplayNames * U_EXPORT2 +U_CAPI ULocaleDisplayNames * U_EXPORT2 uldn_open(const char * locale, UDialectHandling dialectHandling, UErrorCode *pErrorCode) { @@ -561,12 +561,12 @@ uldn_open(const char * locale, return (ULocaleDisplayNames *)LocaleDisplayNames::createInstance(Locale(locale), dialectHandling); } -U_DRAFT void U_EXPORT2 +U_CAPI void U_EXPORT2 uldn_close(ULocaleDisplayNames *ldn) { delete (LocaleDisplayNames *)ldn; } -U_DRAFT const char * U_EXPORT2 +U_CAPI const char * U_EXPORT2 uldn_getLocale(const ULocaleDisplayNames *ldn) { if (ldn) { return ((const LocaleDisplayNames *)ldn)->getLocale().getName(); @@ -574,7 +574,7 @@ uldn_getLocale(const ULocaleDisplayNames *ldn) { return NULL; } -U_DRAFT UDialectHandling U_EXPORT2 +U_CAPI UDialectHandling U_EXPORT2 uldn_getDialectHandling(const ULocaleDisplayNames *ldn) { if (ldn) { return ((const LocaleDisplayNames *)ldn)->getDialectHandling(); @@ -582,7 +582,7 @@ uldn_getDialectHandling(const ULocaleDisplayNames *ldn) { return ULDN_STANDARD_NAMES; } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uldn_localeDisplayName(const ULocaleDisplayNames *ldn, const char *locale, UChar *result, @@ -600,7 +600,7 @@ uldn_localeDisplayName(const ULocaleDisplayNames *ldn, return temp.extract(result, maxResultSize, *pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uldn_languageDisplayName(const ULocaleDisplayNames *ldn, const char *lang, UChar *result, @@ -618,7 +618,7 @@ uldn_languageDisplayName(const ULocaleDisplayNames *ldn, return temp.extract(result, maxResultSize, *pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uldn_scriptDisplayName(const ULocaleDisplayNames *ldn, const char *script, UChar *result, @@ -636,7 +636,7 @@ uldn_scriptDisplayName(const ULocaleDisplayNames *ldn, return temp.extract(result, maxResultSize, *pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uldn_scriptCodeDisplayName(const ULocaleDisplayNames *ldn, UScriptCode scriptCode, UChar *result, @@ -645,7 +645,7 @@ uldn_scriptCodeDisplayName(const ULocaleDisplayNames *ldn, return uldn_scriptDisplayName(ldn, uscript_getName(scriptCode), result, maxResultSize, pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uldn_regionDisplayName(const ULocaleDisplayNames *ldn, const char *region, UChar *result, @@ -663,7 +663,7 @@ uldn_regionDisplayName(const ULocaleDisplayNames *ldn, return temp.extract(result, maxResultSize, *pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uldn_variantDisplayName(const ULocaleDisplayNames *ldn, const char *variant, UChar *result, @@ -681,7 +681,7 @@ uldn_variantDisplayName(const ULocaleDisplayNames *ldn, return temp.extract(result, maxResultSize, *pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uldn_keyDisplayName(const ULocaleDisplayNames *ldn, const char *key, UChar *result, @@ -699,7 +699,7 @@ uldn_keyDisplayName(const ULocaleDisplayNames *ldn, return temp.extract(result, maxResultSize, *pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 uldn_keyValueDisplayName(const ULocaleDisplayNames *ldn, const char *key, const char *value, diff --git a/icu4c/source/i18n/ucol.cpp b/icu4c/source/i18n/ucol.cpp index ba1d5d4988b..49f413cfb12 100644 --- a/icu4c/source/i18n/ucol.cpp +++ b/icu4c/source/i18n/ucol.cpp @@ -6780,7 +6780,7 @@ ucol_getStrength(const UCollator *coll) return ucol_getAttribute(coll, UCOL_STRENGTH, &status); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 ucol_getReorderCodes(const UCollator *coll, int32_t *dest, int32_t destCapacity, @@ -6813,7 +6813,7 @@ ucol_getReorderCodes(const UCollator *coll, return coll->reorderCodesLength; } -U_DRAFT void U_EXPORT2 +U_CAPI void U_EXPORT2 ucol_setReorderCodes(UCollator* coll, const int32_t* reorderCodes, int32_t reorderCodesLength, @@ -6857,7 +6857,7 @@ ucol_setReorderCodes(UCollator* coll, ucol_buildPermutationTable(coll, status); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 ucol_getEquivalentReorderCodes(int32_t reorderCode, int32_t* dest, int32_t destCapacity, @@ -8858,7 +8858,7 @@ ucol_strcoll( const UCollator *coll, return returnVal; } -U_DRAFT UCollationResult U_EXPORT2 +U_CAPI UCollationResult U_EXPORT2 ucol_strcollUTF8( const UCollator *coll, const char *source, diff --git a/icu4c/source/i18n/udatpg.cpp b/icu4c/source/i18n/udatpg.cpp index 006384f1237..9b6a107ed6b 100644 --- a/icu4c/source/i18n/udatpg.cpp +++ b/icu4c/source/i18n/udatpg.cpp @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 2009, International Business Machines +* Copyright (C) 2009-2012, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -26,7 +26,7 @@ U_NAMESPACE_USE -U_DRAFT UDateTimePatternGenerator * U_EXPORT2 +U_CAPI UDateTimePatternGenerator * U_EXPORT2 udatpg_open(const char *locale, UErrorCode *pErrorCode) { if(locale==NULL) { return (UDateTimePatternGenerator *)DateTimePatternGenerator::createInstance(*pErrorCode); @@ -35,17 +35,17 @@ udatpg_open(const char *locale, UErrorCode *pErrorCode) { } } -U_DRAFT UDateTimePatternGenerator * U_EXPORT2 +U_CAPI UDateTimePatternGenerator * U_EXPORT2 udatpg_openEmpty(UErrorCode *pErrorCode) { return (UDateTimePatternGenerator *)DateTimePatternGenerator::createEmptyInstance(*pErrorCode); } -U_DRAFT void U_EXPORT2 +U_CAPI void U_EXPORT2 udatpg_close(UDateTimePatternGenerator *dtpg) { delete (DateTimePatternGenerator *)dtpg; } -U_DRAFT UDateTimePatternGenerator * U_EXPORT2 +U_CAPI UDateTimePatternGenerator * U_EXPORT2 udatpg_clone(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode) { if(U_FAILURE(*pErrorCode)) { return NULL; @@ -53,7 +53,7 @@ udatpg_clone(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode) { return (UDateTimePatternGenerator *)(((const DateTimePatternGenerator *)dtpg)->clone()); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 udatpg_getBestPattern(UDateTimePatternGenerator *dtpg, const UChar *skeleton, int32_t length, UChar *bestPattern, int32_t capacity, @@ -63,7 +63,7 @@ udatpg_getBestPattern(UDateTimePatternGenerator *dtpg, bestPattern, capacity, pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 udatpg_getBestPatternWithOptions(UDateTimePatternGenerator *dtpg, const UChar *skeleton, int32_t length, UDateTimePatternMatchOptions options, @@ -81,7 +81,7 @@ udatpg_getBestPatternWithOptions(UDateTimePatternGenerator *dtpg, return result.extract(bestPattern, capacity, *pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 udatpg_getSkeleton(UDateTimePatternGenerator *dtpg, const UChar *pattern, int32_t length, UChar *skeleton, int32_t capacity, @@ -98,7 +98,7 @@ udatpg_getSkeleton(UDateTimePatternGenerator *dtpg, return result.extract(skeleton, capacity, *pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 udatpg_getBaseSkeleton(UDateTimePatternGenerator *dtpg, const UChar *pattern, int32_t length, UChar *skeleton, int32_t capacity, @@ -115,7 +115,7 @@ udatpg_getBaseSkeleton(UDateTimePatternGenerator *dtpg, return result.extract(skeleton, capacity, *pErrorCode); } -U_DRAFT UDateTimePatternConflict U_EXPORT2 +U_CAPI UDateTimePatternConflict U_EXPORT2 udatpg_addPattern(UDateTimePatternGenerator *dtpg, const UChar *pattern, int32_t patternLength, UBool override, @@ -139,7 +139,7 @@ udatpg_addPattern(UDateTimePatternGenerator *dtpg, return result; } -U_DRAFT void U_EXPORT2 +U_CAPI void U_EXPORT2 udatpg_setAppendItemFormat(UDateTimePatternGenerator *dtpg, UDateTimePatternField field, const UChar *value, int32_t length) { @@ -147,7 +147,7 @@ udatpg_setAppendItemFormat(UDateTimePatternGenerator *dtpg, ((DateTimePatternGenerator *)dtpg)->setAppendItemFormat(field, valueString); } -U_DRAFT const UChar * U_EXPORT2 +U_CAPI const UChar * U_EXPORT2 udatpg_getAppendItemFormat(const UDateTimePatternGenerator *dtpg, UDateTimePatternField field, int32_t *pLength) { @@ -158,7 +158,7 @@ udatpg_getAppendItemFormat(const UDateTimePatternGenerator *dtpg, return result.getBuffer(); } -U_DRAFT void U_EXPORT2 +U_CAPI void U_EXPORT2 udatpg_setAppendItemName(UDateTimePatternGenerator *dtpg, UDateTimePatternField field, const UChar *value, int32_t length) { @@ -166,7 +166,7 @@ udatpg_setAppendItemName(UDateTimePatternGenerator *dtpg, ((DateTimePatternGenerator *)dtpg)->setAppendItemName(field, valueString); } -U_DRAFT const UChar * U_EXPORT2 +U_CAPI const UChar * U_EXPORT2 udatpg_getAppendItemName(const UDateTimePatternGenerator *dtpg, UDateTimePatternField field, int32_t *pLength) { @@ -177,14 +177,14 @@ udatpg_getAppendItemName(const UDateTimePatternGenerator *dtpg, return result.getBuffer(); } -U_DRAFT void U_EXPORT2 +U_CAPI void U_EXPORT2 udatpg_setDateTimeFormat(const UDateTimePatternGenerator *dtpg, const UChar *dtFormat, int32_t length) { UnicodeString dtFormatString((UBool)(length<0), dtFormat, length); ((DateTimePatternGenerator *)dtpg)->setDateTimeFormat(dtFormatString); } -U_DRAFT const UChar * U_EXPORT2 +U_CAPI const UChar * U_EXPORT2 udatpg_getDateTimeFormat(const UDateTimePatternGenerator *dtpg, int32_t *pLength) { const UnicodeString &result=((const DateTimePatternGenerator *)dtpg)->getDateTimeFormat(); @@ -194,14 +194,14 @@ udatpg_getDateTimeFormat(const UDateTimePatternGenerator *dtpg, return result.getBuffer(); } -U_DRAFT void U_EXPORT2 +U_CAPI void U_EXPORT2 udatpg_setDecimal(UDateTimePatternGenerator *dtpg, const UChar *decimal, int32_t length) { UnicodeString decimalString((UBool)(length<0), decimal, length); ((DateTimePatternGenerator *)dtpg)->setDecimal(decimalString); } -U_DRAFT const UChar * U_EXPORT2 +U_CAPI const UChar * U_EXPORT2 udatpg_getDecimal(const UDateTimePatternGenerator *dtpg, int32_t *pLength) { const UnicodeString &result=((const DateTimePatternGenerator *)dtpg)->getDecimal(); @@ -211,7 +211,7 @@ udatpg_getDecimal(const UDateTimePatternGenerator *dtpg, return result.getBuffer(); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 udatpg_replaceFieldTypes(UDateTimePatternGenerator *dtpg, const UChar *pattern, int32_t patternLength, const UChar *skeleton, int32_t skeletonLength, @@ -222,7 +222,7 @@ udatpg_replaceFieldTypes(UDateTimePatternGenerator *dtpg, dest, destCapacity, pErrorCode); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 udatpg_replaceFieldTypesWithOptions(UDateTimePatternGenerator *dtpg, const UChar *pattern, int32_t patternLength, const UChar *skeleton, int32_t skeletonLength, @@ -242,21 +242,21 @@ udatpg_replaceFieldTypesWithOptions(UDateTimePatternGenerator *dtpg, return result.extract(dest, destCapacity, *pErrorCode); } -U_DRAFT UEnumeration * U_EXPORT2 +U_CAPI UEnumeration * U_EXPORT2 udatpg_openSkeletons(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode) { return uenum_openFromStringEnumeration( ((DateTimePatternGenerator *)dtpg)->getSkeletons(*pErrorCode), pErrorCode); } -U_DRAFT UEnumeration * U_EXPORT2 +U_CAPI UEnumeration * U_EXPORT2 udatpg_openBaseSkeletons(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode) { return uenum_openFromStringEnumeration( ((DateTimePatternGenerator *)dtpg)->getBaseSkeletons(*pErrorCode), pErrorCode); } -U_DRAFT const UChar * U_EXPORT2 +U_CAPI const UChar * U_EXPORT2 udatpg_getPatternForSkeleton(const UDateTimePatternGenerator *dtpg, const UChar *skeleton, int32_t skeletonLength, int32_t *pLength) { diff --git a/icu4c/source/i18n/ulocdata.c b/icu4c/source/i18n/ulocdata.c index a864c3aa395..19f3bf42b61 100644 --- a/icu4c/source/i18n/ulocdata.c +++ b/icu4c/source/i18n/ulocdata.c @@ -1,7 +1,7 @@ /* ****************************************************************************** * * -* Copyright (C) 2003-2011, International Business Machines * +* Copyright (C) 2003-2012, International Business Machines * * Corporation and others. All Rights Reserved. * * * ****************************************************************************** @@ -239,7 +239,7 @@ ulocdata_getPaperSize(const char* localeID, int32_t *height, int32_t *width, UEr } -U_DRAFT void U_EXPORT2 +U_CAPI void U_EXPORT2 ulocdata_getCLDRVersion(UVersionInfo versionArray, UErrorCode *status) { UResourceBundle *rb = NULL; rb = ures_openDirect(NULL, "supplementalData", status); @@ -247,7 +247,7 @@ ulocdata_getCLDRVersion(UVersionInfo versionArray, UErrorCode *status) { ures_close(rb); } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 ulocdata_getLocaleDisplayPattern(ULocaleData *uld, UChar *result, int32_t resultCapacity, @@ -295,7 +295,7 @@ ulocdata_getLocaleDisplayPattern(ULocaleData *uld, } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 ulocdata_getLocaleSeparator(ULocaleData *uld, UChar *result, int32_t resultCapacity, diff --git a/icu4c/source/i18n/unicode/ucal.h b/icu4c/source/i18n/unicode/ucal.h index bbf6f7e5e97..3f9274be82e 100644 --- a/icu4c/source/i18n/unicode/ucal.h +++ b/icu4c/source/i18n/unicode/ucal.h @@ -1426,7 +1426,7 @@ ucal_isWeekend(const UCalendar *cal, UDate date, UErrorCode *status); * @return The date difference for the specified field. * @stable ICU 4.8 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 ucal_getFieldDifference(UCalendar* cal, UDate target, UCalendarDateFields field, diff --git a/icu4c/source/i18n/unicode/ucol.h b/icu4c/source/i18n/unicode/ucol.h index cb77cd8587b..f86cc209292 100644 --- a/icu4c/source/i18n/unicode/ucol.h +++ b/icu4c/source/i18n/unicode/ucol.h @@ -676,7 +676,7 @@ ucol_setStrength(UCollator *coll, * @see UColReorderCode * @stable ICU 4.8 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 ucol_getReorderCodes(const UCollator* coll, int32_t* dest, int32_t destCapacity, @@ -738,7 +738,7 @@ ucol_setReorderCodes(UCollator* coll, * @see UColReorderCode * @stable ICU 4.8 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 ucol_getEquivalentReorderCodes(int32_t reorderCode, int32_t* dest, int32_t destCapacity, diff --git a/icu4c/source/i18n/unicode/udateintervalformat.h b/icu4c/source/i18n/unicode/udateintervalformat.h index 5924e46deb1..5ee92e629af 100644 --- a/icu4c/source/i18n/unicode/udateintervalformat.h +++ b/icu4c/source/i18n/unicode/udateintervalformat.h @@ -103,7 +103,7 @@ typedef struct UDateIntervalFormat UDateIntervalFormat; /**< C typedef for stru * or NULL if an error occurred. * @stable ICU 4.8 */ -U_DRAFT UDateIntervalFormat* U_EXPORT2 +U_STABLE UDateIntervalFormat* U_EXPORT2 udtitvfmt_open(const char* locale, const UChar* skeleton, int32_t skeletonLength, @@ -117,7 +117,7 @@ udtitvfmt_open(const char* locale, * The UDateIntervalFormat object to close. * @stable ICU 4.8 */ -U_DRAFT void U_EXPORT2 +U_STABLE void U_EXPORT2 udtitvfmt_close(UDateIntervalFormat *formatter); @@ -167,7 +167,7 @@ U_NAMESPACE_END * output was truncated. * @stable ICU 4.8 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 udtitvfmt_format(const UDateIntervalFormat* formatter, UDate fromDate, UDate toDate, diff --git a/icu4c/source/i18n/unicode/ugender.h b/icu4c/source/i18n/unicode/ugender.h index 3071be888e9..f5701dafe83 100644 --- a/icu4c/source/i18n/unicode/ugender.h +++ b/icu4c/source/i18n/unicode/ugender.h @@ -48,7 +48,7 @@ typedef struct UGenderInfo UGenderInfo; * @return A UGenderInfo for the specified locale, or NULL if an error occurred. * @stable ICU 4.8 */ -U_DRAFT const UGenderInfo* U_EXPORT2 +U_STABLE const UGenderInfo* U_EXPORT2 ugender_getInstance(const char *locale, UErrorCode *status); diff --git a/icu4c/source/i18n/unicode/upluralrules.h b/icu4c/source/i18n/unicode/upluralrules.h index f6adcf54249..4b81321779a 100644 --- a/icu4c/source/i18n/unicode/upluralrules.h +++ b/icu4c/source/i18n/unicode/upluralrules.h @@ -79,7 +79,7 @@ typedef struct UPluralRules UPluralRules; /**< C typedef for struct UPluralRule * @return A UPluralRules for the specified locale, or NULL if an error occurred. * @stable ICU 4.8 */ -U_DRAFT UPluralRules* U_EXPORT2 +U_STABLE UPluralRules* U_EXPORT2 uplrules_open(const char *locale, UErrorCode *status); /** @@ -99,7 +99,7 @@ uplrules_openForType(const char *locale, UPluralType type, UErrorCode *status); * @param uplrules The UPluralRules object to close. * @stable ICU 4.8 */ -U_DRAFT void U_EXPORT2 +U_STABLE void U_EXPORT2 uplrules_close(UPluralRules *uplrules); @@ -134,7 +134,7 @@ U_NAMESPACE_END * @return The length of keyword. * @stable ICU 4.8 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 uplrules_select(const UPluralRules *uplrules, double number, UChar *keyword, int32_t capacity, diff --git a/icu4c/source/i18n/unicode/uregex.h b/icu4c/source/i18n/unicode/uregex.h index 1a9209e31b1..acea159db12 100644 --- a/icu4c/source/i18n/unicode/uregex.h +++ b/icu4c/source/i18n/unicode/uregex.h @@ -159,7 +159,7 @@ uregex_open( const UChar *pattern, * * @stable ICU 4.6 */ -U_DRAFT URegularExpression * U_EXPORT2 +U_STABLE URegularExpression * U_EXPORT2 uregex_openUText(UText *pattern, uint32_t flags, UParseError *pe, @@ -281,7 +281,7 @@ uregex_pattern(const URegularExpression *regexp, * * @stable ICU 4.6 */ -U_DRAFT UText * U_EXPORT2 +U_STABLE UText * U_EXPORT2 uregex_patternUText(const URegularExpression *regexp, UErrorCode *status); @@ -341,7 +341,7 @@ uregex_setText(URegularExpression *regexp, * * @stable ICU 4.6 */ -U_DRAFT void U_EXPORT2 +U_STABLE void U_EXPORT2 uregex_setUText(URegularExpression *regexp, UText *text, UErrorCode *status); @@ -387,7 +387,7 @@ uregex_getText(URegularExpression *regexp, * * @stable ICU 4.6 */ -U_DRAFT UText * U_EXPORT2 +U_STABLE UText * U_EXPORT2 uregex_getUText(URegularExpression *regexp, UText *dest, UErrorCode *status); @@ -415,9 +415,9 @@ uregex_getUText(URegularExpression *regexp, * @param text The new (moved) text string. * @param status Receives errors detected by this function. * - * @stable ICU 4.8 + * @stable ICU 4.8 */ -U_DRAFT void U_EXPORT2 +U_STABLE void U_EXPORT2 uregex_refreshUText(URegularExpression *regexp, UText *text, UErrorCode *status); @@ -468,7 +468,7 @@ uregex_matches(URegularExpression *regexp, * @return TRUE if there is a match * @stable ICU 4.6 */ -U_DRAFT UBool U_EXPORT2 +U_STABLE UBool U_EXPORT2 uregex_matches64(URegularExpression *regexp, int64_t startIndex, UErrorCode *status); @@ -525,7 +525,7 @@ uregex_lookingAt(URegularExpression *regexp, * @return TRUE if there is a match. * @stable ICU 4.6 */ -U_DRAFT UBool U_EXPORT2 +U_STABLE UBool U_EXPORT2 uregex_lookingAt64(URegularExpression *regexp, int64_t startIndex, UErrorCode *status); @@ -574,7 +574,7 @@ uregex_find(URegularExpression *regexp, * @return TRUE if a match is found. * @stable ICU 4.6 */ -U_DRAFT UBool U_EXPORT2 +U_STABLE UBool U_EXPORT2 uregex_find64(URegularExpression *regexp, int64_t startIndex, UErrorCode *status); @@ -652,7 +652,7 @@ uregex_group(URegularExpression *regexp, * * @stable ICU 4.6 */ -U_DRAFT UText * U_EXPORT2 +U_STABLE UText * U_EXPORT2 uregex_groupUText(URegularExpression *regexp, int32_t groupNum, UText *dest, @@ -718,7 +718,7 @@ uregex_start(URegularExpression *regexp, * by the specified group. * @stable ICU 4.6 */ -U_DRAFT int64_t U_EXPORT2 +U_STABLE int64_t U_EXPORT2 uregex_start64(URegularExpression *regexp, int32_t groupNum, UErrorCode *status); @@ -755,7 +755,7 @@ uregex_end(URegularExpression *regexp, * @return the (native) index of the position following the last matched character. * @stable ICU 4.6 */ -U_DRAFT int64_t U_EXPORT2 +U_STABLE int64_t U_EXPORT2 uregex_end64(URegularExpression *regexp, int32_t groupNum, UErrorCode *status); @@ -792,7 +792,7 @@ uregex_reset(URegularExpression *regexp, * @param status A reference to a UErrorCode to receive any errors. * @stable ICU 4.6 */ -U_DRAFT void U_EXPORT2 +U_STABLE void U_EXPORT2 uregex_reset64(URegularExpression *regexp, int64_t index, UErrorCode *status); @@ -844,7 +844,7 @@ uregex_setRegion(URegularExpression *regexp, * @param status A pointer to a UErrorCode to receive any errors. * @stable ICU 4.6 */ -U_DRAFT void U_EXPORT2 +U_STABLE void U_EXPORT2 uregex_setRegion64(URegularExpression *regexp, int64_t regionStart, int64_t regionLimit, @@ -864,7 +864,7 @@ uregex_setRegion64(URegularExpression *regexp, * @param status A pointer to a UErrorCode to receive any errors. * @stable ICU 4.6 */ -U_DRAFT void U_EXPORT2 +U_STABLE void U_EXPORT2 uregex_setRegionAndStart(URegularExpression *regexp, int64_t regionStart, int64_t regionLimit, @@ -894,7 +894,7 @@ uregex_regionStart(const URegularExpression *regexp, * @return The starting (native) index of this matcher's region. * @stable ICU 4.6 */ -U_DRAFT int64_t U_EXPORT2 +U_STABLE int64_t U_EXPORT2 uregex_regionStart64(const URegularExpression *regexp, UErrorCode *status); @@ -923,7 +923,7 @@ uregex_regionEnd(const URegularExpression *regexp, * @return The ending point (native) of this matcher's region. * @stable ICU 4.6 */ -U_DRAFT int64_t U_EXPORT2 +U_STABLE int64_t U_EXPORT2 uregex_regionEnd64(const URegularExpression *regexp, UErrorCode *status); @@ -1085,7 +1085,7 @@ uregex_replaceAll(URegularExpression *regexp, * * @stable ICU 4.6 */ -U_DRAFT UText * U_EXPORT2 +U_STABLE UText * U_EXPORT2 uregex_replaceAllUText(URegularExpression *regexp, UText *replacement, UText *dest, @@ -1144,7 +1144,7 @@ uregex_replaceFirst(URegularExpression *regexp, * * @stable ICU 4.6 */ -U_DRAFT UText * U_EXPORT2 +U_STABLE UText * U_EXPORT2 uregex_replaceFirstUText(URegularExpression *regexp, UText *replacement, UText *dest, @@ -1226,7 +1226,7 @@ uregex_appendReplacement(URegularExpression *regexp, * * @stable ICU 4.6 */ -U_DRAFT void U_EXPORT2 +U_STABLE void U_EXPORT2 uregex_appendReplacementUText(URegularExpression *regexp, UText *replacementText, UText *dest, @@ -1280,7 +1280,7 @@ uregex_appendTail(URegularExpression *regexp, * * @stable ICU 4.6 */ -U_DRAFT UText * U_EXPORT2 +U_STABLE UText * U_EXPORT2 uregex_appendTailUText(URegularExpression *regexp, UText *dest, UErrorCode *status); @@ -1371,7 +1371,7 @@ uregex_split( URegularExpression *regexp, * * @stable ICU 4.6 */ -U_DRAFT int32_t U_EXPORT2 +U_STABLE int32_t U_EXPORT2 uregex_splitUText(URegularExpression *regexp, UText *destFields[], int32_t destFieldsCapacity, @@ -1564,7 +1564,7 @@ U_CDECL_END * @param status A reference to a UErrorCode to receive any errors. * @stable ICU 4.6 */ -U_DRAFT void U_EXPORT2 +U_STABLE void U_EXPORT2 uregex_setFindProgressCallback(URegularExpression *regexp, URegexFindProgressCallback *callback, const void *context, @@ -1581,7 +1581,7 @@ uregex_setFindProgressCallback(URegularExpression *regexp, * @param status A reference to a UErrorCode to receive any errors. * @stable ICU 4.6 */ -U_DRAFT void U_EXPORT2 +U_STABLE void U_EXPORT2 uregex_getFindProgressCallback(const URegularExpression *regexp, URegexFindProgressCallback **callback, const void **context, diff --git a/icu4c/source/i18n/unum.cpp b/icu4c/source/i18n/unum.cpp index be519d4ef49..48e503a130f 100644 --- a/icu4c/source/i18n/unum.cpp +++ b/icu4c/source/i18n/unum.cpp @@ -231,7 +231,7 @@ unum_formatDouble( const UNumberFormat* fmt, } -U_DRAFT int32_t U_EXPORT2 +U_CAPI int32_t U_EXPORT2 unum_formatDecimal(const UNumberFormat* fmt, const char * number, int32_t length, diff --git a/icu4c/source/i18n/uregex.cpp b/icu4c/source/i18n/uregex.cpp index 8618baa936c..6c4ee7c5589 100644 --- a/icu4c/source/i18n/uregex.cpp +++ b/icu4c/source/i18n/uregex.cpp @@ -1,6 +1,6 @@ /* ******************************************************************************* -* Copyright (C) 2004-2011, International Business Machines +* Copyright (C) 2004-2012, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************* * file name: regex.cpp @@ -854,7 +854,7 @@ uregex_setRegion64(URegularExpression *regexp2, // uregex_setRegionAndStart // //------------------------------------------------------------------------------ -U_DRAFT void U_EXPORT2 +U_CAPI void U_EXPORT2 uregex_setRegionAndStart(URegularExpression *regexp2, int64_t regionStart, int64_t regionLimit,