mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-05 13:35:32 +00:00
ICU-22723 Promoted all @draft ICU 74 APIs to @stable ICU 74
This commit is contained in:
parent
c7caebd823
commit
d0fb2d54b3
10 changed files with 57 additions and 88 deletions
|
@ -163,7 +163,6 @@ public:
|
|||
static const Normalizer2 *
|
||||
getNFKCCasefoldInstance(UErrorCode &errorCode);
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* Returns a Normalizer2 instance for a variant of Unicode toNFKC_Casefold() normalization
|
||||
* which is equivalent to applying the NFKC_Simple_Casefold mappings and then NFC.
|
||||
|
@ -176,11 +175,10 @@ public:
|
|||
* immediately. Check for U_FAILURE() on output or use with
|
||||
* function chaining. (See User Guide for details.)
|
||||
* @return the requested Normalizer2, if successful
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
static const Normalizer2 *
|
||||
getNFKCSimpleCasefoldInstance(UErrorCode &errorCode);
|
||||
#endif // U_HIDE_DRAFT_API
|
||||
|
||||
/**
|
||||
* Returns a Normalizer2 instance which uses the specified data file
|
||||
|
|
|
@ -533,26 +533,26 @@ typedef enum UProperty {
|
|||
* @stable ICU 70
|
||||
*/
|
||||
UCHAR_RGI_EMOJI=71,
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* Binary property IDS_Unary_Operator.
|
||||
* For programmatic determination of Ideographic Description Sequences.
|
||||
*
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
UCHAR_IDS_UNARY_OPERATOR=72,
|
||||
/**
|
||||
* Binary property ID_Compat_Math_Start.
|
||||
* Used in mathematical identifier profile in UAX #31.
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
UCHAR_ID_COMPAT_MATH_START=73,
|
||||
/**
|
||||
* Binary property ID_Compat_Math_Continue.
|
||||
* Used in mathematical identifier profile in UAX #31.
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
UCHAR_ID_COMPAT_MATH_CONTINUE=74,
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* Binary property Modifier_Combining_Mark.
|
||||
* Used by the AMTRA algorithm in UAX #53.
|
||||
|
|
|
@ -13,16 +13,15 @@
|
|||
* \brief C API: Locale ID functionality similar to C++ class Locale
|
||||
*/
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* Opaque C service object type for the locale API
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
struct ULocale;
|
||||
|
||||
/**
|
||||
* C typedef for struct ULocale.
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
typedef struct ULocale ULocale;
|
||||
|
||||
|
@ -37,7 +36,7 @@ typedef struct ULocale ULocale;
|
|||
* @param err the error code
|
||||
* @return the locale.
|
||||
*
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI ULocale* U_EXPORT2
|
||||
ulocale_openForLocaleID(const char* localeID, int32_t length, UErrorCode* err);
|
||||
|
@ -53,7 +52,7 @@ ulocale_openForLocaleID(const char* localeID, int32_t length, UErrorCode* err);
|
|||
* @param err the error code
|
||||
* @return the locale.
|
||||
*
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI ULocale* U_EXPORT2
|
||||
ulocale_openForLanguageTag(const char* tag, int32_t length, UErrorCode* err);
|
||||
|
@ -62,7 +61,7 @@ ulocale_openForLanguageTag(const char* tag, int32_t length, UErrorCode* err);
|
|||
* Close the locale and destroy it's internal states.
|
||||
*
|
||||
* @param locale the locale
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
ulocale_close(ULocale* locale);
|
||||
|
@ -72,7 +71,7 @@ ulocale_close(ULocale* locale);
|
|||
*
|
||||
* @param locale the locale
|
||||
* @return the language code of the locale.
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI const char* U_EXPORT2
|
||||
ulocale_getLanguage(const ULocale* locale);
|
||||
|
@ -82,7 +81,7 @@ ulocale_getLanguage(const ULocale* locale);
|
|||
*
|
||||
* @param locale the locale
|
||||
* @return A pointer to the script.
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI const char* U_EXPORT2
|
||||
ulocale_getScript(const ULocale* locale);
|
||||
|
@ -92,7 +91,7 @@ ulocale_getScript(const ULocale* locale);
|
|||
*
|
||||
* @param locale the locale
|
||||
* @return A pointer to the region.
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI const char* U_EXPORT2
|
||||
ulocale_getRegion(const ULocale* locale);
|
||||
|
@ -102,7 +101,7 @@ ulocale_getRegion(const ULocale* locale);
|
|||
*
|
||||
* @param locale the locale
|
||||
* @return A pointer to the variant.
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI const char* U_EXPORT2
|
||||
ulocale_getVariant(const ULocale* locale);
|
||||
|
@ -115,7 +114,7 @@ ulocale_getVariant(const ULocale* locale);
|
|||
*
|
||||
* @param locale the locale
|
||||
* @return A pointer to "name".
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI const char* U_EXPORT2
|
||||
ulocale_getLocaleID(const ULocale* locale);
|
||||
|
@ -126,7 +125,7 @@ ulocale_getLocaleID(const ULocale* locale);
|
|||
*
|
||||
* @param locale the locale
|
||||
* @return A pointer to "base name".
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI const char* U_EXPORT2
|
||||
ulocale_getBaseName(const ULocale* locale);
|
||||
|
@ -136,7 +135,7 @@ ulocale_getBaseName(const ULocale* locale);
|
|||
*
|
||||
* @param locale the locale
|
||||
* @return false if it is a real locale, true if it is a bogus locale
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI bool U_EXPORT2
|
||||
ulocale_isBogus(const ULocale* locale);
|
||||
|
@ -148,7 +147,7 @@ ulocale_isBogus(const ULocale* locale);
|
|||
* @param err the error code
|
||||
* @return pointer to UEnumeration, or nullptr if there are no keywords.
|
||||
* Client must call uenum_close() to dispose the returned value.
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI UEnumeration* U_EXPORT2
|
||||
ulocale_getKeywords(const ULocale* locale, UErrorCode *err);
|
||||
|
@ -160,7 +159,7 @@ ulocale_getKeywords(const ULocale* locale, UErrorCode *err);
|
|||
* @param err the error code
|
||||
* @return pointer to UEnumeration, or nullptr if there are no keywords.
|
||||
* Client must call uenum_close() to dispose the returned value.
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI UEnumeration* U_EXPORT2
|
||||
ulocale_getUnicodeKeywords(const ULocale* locale, UErrorCode *err);
|
||||
|
@ -178,7 +177,7 @@ ulocale_getUnicodeKeywords(const ULocale* locale, UErrorCode *err);
|
|||
* @param valueBuffer The buffer to receive the value.
|
||||
* @param valueBufferCapacity The capacity of receiving valueBuffer.
|
||||
* @param err the error code
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI int32_t U_EXPORT2
|
||||
ulocale_getKeywordValue(
|
||||
|
@ -198,7 +197,7 @@ ulocale_getKeywordValue(
|
|||
* @param valueBuffer The buffer to receive the Unicode value.
|
||||
* @param valueBufferCapacity The capacity of receiving valueBuffer.
|
||||
* @param err the error code
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI int32_t U_EXPORT2
|
||||
ulocale_getUnicodeKeywordValue(
|
||||
|
@ -216,7 +215,7 @@ U_NAMESPACE_BEGIN
|
|||
*
|
||||
* @see LocalPointerBase
|
||||
* @see LocalPointer
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_DEFINE_LOCAL_OPEN_POINTER(LocalULocalePointer, ULocale, ulocale_close);
|
||||
|
||||
|
@ -224,6 +223,4 @@ U_NAMESPACE_END
|
|||
|
||||
#endif /* U_SHOW_CPLUSPLUS_API */
|
||||
|
||||
#endif /* U_HIDE_DRAFT_API */
|
||||
|
||||
#endif /*_ULOCALE */
|
||||
|
|
|
@ -12,17 +12,15 @@
|
|||
* \brief C API: Builder API for Locale
|
||||
*/
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
|
||||
/**
|
||||
* Opaque C service object type for the locale builder API
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
struct ULocaleBuilder;
|
||||
|
||||
/**
|
||||
* C typedef for struct ULocaleBuilder.
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
typedef struct ULocaleBuilder ULocaleBuilder;
|
||||
|
||||
|
@ -62,7 +60,7 @@ typedef struct ULocaleBuilder ULocaleBuilder;
|
|||
* UErrorCode, then track the error of the validation of the input parameter
|
||||
* into the internal UErrorCode.
|
||||
*
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -71,7 +69,7 @@ typedef struct ULocaleBuilder ULocaleBuilder;
|
|||
* empty string. The created builder should be destroyed by calling
|
||||
* ulocbld_close();
|
||||
*
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI ULocaleBuilder* U_EXPORT2
|
||||
ulocbld_open(void);
|
||||
|
@ -79,7 +77,7 @@ ulocbld_open(void);
|
|||
/**
|
||||
* Close the builder and destroy it's internal states.
|
||||
* @param builder the builder
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
ulocbld_close(ULocaleBuilder* builder);
|
||||
|
@ -97,7 +95,7 @@ ulocbld_close(ULocaleBuilder* builder);
|
|||
* @param length the length of the locale; if negative, then the locale need to be
|
||||
* null terminated,
|
||||
*
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
ulocbld_setLocale(ULocaleBuilder* builder, const char* locale, int32_t length);
|
||||
|
@ -113,7 +111,7 @@ ulocbld_setLocale(ULocaleBuilder* builder, const char* locale, int32_t length);
|
|||
* @param locale the locale, a ULocale* pointer. The builder adopts the locale
|
||||
* after the call and the client must not delete it.
|
||||
*
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
ulocbld_adoptULocale(ULocaleBuilder* builder, ULocale* locale);
|
||||
|
@ -136,7 +134,7 @@ ulocbld_adoptULocale(ULocaleBuilder* builder, ULocale* locale);
|
|||
* the length is non-negative)
|
||||
* @param length the length of the tag; if negative, then the tag need to be
|
||||
* null terminated,
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
ulocbld_setLanguageTag(ULocaleBuilder* builder, const char* tag, int32_t length);
|
||||
|
@ -156,7 +154,7 @@ ulocbld_setLanguageTag(ULocaleBuilder* builder, const char* tag, int32_t length)
|
|||
* the length is non-negative)
|
||||
* @param length the length of the language; if negative, then the language need to be
|
||||
* null terminated,
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
ulocbld_setLanguage(ULocaleBuilder* builder, const char* language, int32_t length);
|
||||
|
@ -177,7 +175,7 @@ ulocbld_setLanguage(ULocaleBuilder* builder, const char* language, int32_t lengt
|
|||
* the length is non-negative)
|
||||
* @param length the length of the script; if negative, then the script need to be
|
||||
* null terminated,
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
ulocbld_setScript(ULocaleBuilder* builder, const char* script, int32_t length);
|
||||
|
@ -201,7 +199,7 @@ ulocbld_setScript(ULocaleBuilder* builder, const char* script, int32_t length);
|
|||
* the length is non-negative)
|
||||
* @param length the length of the region; if negative, then the region need to be
|
||||
* null terminated,
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
ulocbld_setRegion(ULocaleBuilder* builder, const char* region, int32_t length);
|
||||
|
@ -227,7 +225,7 @@ ulocbld_setRegion(ULocaleBuilder* builder, const char* region, int32_t length);
|
|||
* the length is non-negative)
|
||||
* @param length the length of the variant; if negative, then the variant need to be
|
||||
* null terminated,
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
ulocbld_setVariant(ULocaleBuilder* builder, const char* variant, int32_t length);
|
||||
|
@ -253,7 +251,7 @@ ulocbld_setVariant(ULocaleBuilder* builder, const char* variant, int32_t length)
|
|||
* the length is non-negative)
|
||||
* @param length the length of the value; if negative, then the value need to be
|
||||
* null terminated,
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
ulocbld_setExtension(ULocaleBuilder* builder, char key, const char* value, int32_t length);
|
||||
|
@ -282,7 +280,7 @@ ulocbld_setExtension(ULocaleBuilder* builder, char key, const char* value, int32
|
|||
* @param typeLength the length of the type; if negative, then the type need to
|
||||
* be null terminated,
|
||||
* @return This builder.
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
ulocbld_setUnicodeLocaleKeyword(ULocaleBuilder* builder,
|
||||
|
@ -299,7 +297,7 @@ ulocbld_setUnicodeLocaleKeyword(ULocaleBuilder* builder,
|
|||
* terminated when the length is non-negative)
|
||||
* @param length the length of the attribute; if negative, then the attribute
|
||||
* need to be null terminated,
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
ulocbld_addUnicodeLocaleAttribute(
|
||||
|
@ -318,7 +316,7 @@ ulocbld_addUnicodeLocaleAttribute(
|
|||
* terminated when the length is non-negative)
|
||||
* @param length the length of the attribute; if negative, then the attribute
|
||||
* need to be null terminated,
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
ulocbld_removeUnicodeLocaleAttribute(
|
||||
|
@ -329,7 +327,7 @@ ulocbld_removeUnicodeLocaleAttribute(
|
|||
* <p>This method clears the internal UErrorCode.
|
||||
*
|
||||
* @param builder the builder
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
ulocbld_clear(ULocaleBuilder* builder);
|
||||
|
@ -339,7 +337,7 @@ ulocbld_clear(ULocaleBuilder* builder);
|
|||
* Language, script, region and variant are unchanged.
|
||||
*
|
||||
* @param builder the builder
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
ulocbld_clearExtensions(ULocaleBuilder* builder);
|
||||
|
@ -358,7 +356,7 @@ ulocbld_clearExtensions(ULocaleBuilder* builder);
|
|||
* @param localeCapacity the size of the locale buffer to store the locale id
|
||||
* @param err the error code
|
||||
* @return the length of the locale id in buffer
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI int32_t U_EXPORT2
|
||||
ulocbld_buildLocaleID(ULocaleBuilder* builder, char* locale,
|
||||
|
@ -377,7 +375,7 @@ ulocbld_buildLocaleID(ULocaleBuilder* builder, char* locale,
|
|||
* @param err the error code.
|
||||
* @return the locale, a ULocale* pointer. The created ULocale must be
|
||||
* destroyed by calling {@link ulocale_close}.
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI ULocale* U_EXPORT2
|
||||
ulocbld_buildULocale(ULocaleBuilder* builder, UErrorCode* err);
|
||||
|
@ -397,7 +395,7 @@ ulocbld_buildULocale(ULocaleBuilder* builder, UErrorCode* err);
|
|||
* tag
|
||||
* @param err the error code
|
||||
* @return the length of the language tag in buffer
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI int32_t U_EXPORT2
|
||||
ulocbld_buildLanguageTag(ULocaleBuilder* builder, char* language,
|
||||
|
@ -412,7 +410,7 @@ ulocbld_buildLanguageTag(ULocaleBuilder* builder, char* language,
|
|||
* Unchanged if there is no such error or if outErrorCode
|
||||
* already contained an error.
|
||||
* @return true if U_FAILURE(*outErrorCode)
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI UBool U_EXPORT2
|
||||
ulocbld_copyErrorTo(const ULocaleBuilder* builder, UErrorCode *outErrorCode);
|
||||
|
@ -428,7 +426,7 @@ U_NAMESPACE_BEGIN
|
|||
*
|
||||
* @see LocalPointerBase
|
||||
* @see LocalPointer
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_DEFINE_LOCAL_OPEN_POINTER(LocalULocaleBuilderPointer, ULocaleBuilder, ulocbld_close);
|
||||
|
||||
|
@ -436,6 +434,4 @@ U_NAMESPACE_END
|
|||
|
||||
#endif /* U_SHOW_CPLUSPLUS_API */
|
||||
|
||||
#endif /* U_HIDE_DRAFT_API */
|
||||
|
||||
#endif // __ULOCBUILDER_H__
|
||||
|
|
|
@ -197,7 +197,6 @@ unorm2_getNFKDInstance(UErrorCode *pErrorCode);
|
|||
U_CAPI const UNormalizer2 * U_EXPORT2
|
||||
unorm2_getNFKCCasefoldInstance(UErrorCode *pErrorCode);
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* Returns a UNormalizer2 instance for a variant of Unicode toNFKC_Casefold() normalization
|
||||
* which is equivalent to applying the NFKC_Simple_Casefold mappings and then NFC.
|
||||
|
@ -210,11 +209,10 @@ unorm2_getNFKCCasefoldInstance(UErrorCode *pErrorCode);
|
|||
* immediately. Check for U_FAILURE() on output or use with
|
||||
* function chaining. (See User Guide for details.)
|
||||
* @return the requested Normalizer2, if successful
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI const UNormalizer2 * U_EXPORT2
|
||||
unorm2_getNFKCSimpleCasefoldInstance(UErrorCode *pErrorCode);
|
||||
#endif // U_HIDE_DRAFT_API
|
||||
|
||||
/**
|
||||
* Returns a UNormalizer2 instance which uses the specified data file
|
||||
|
|
|
@ -2920,23 +2920,21 @@ class U_I18N_API MeasureUnit: public UObject {
|
|||
*/
|
||||
static MeasureUnit getBar();
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* Returns by pointer, unit of pressure: gasoline-energy-density.
|
||||
* Caller owns returned value and must free it.
|
||||
* Also see {@link #getGasolineEnergyDensity()}.
|
||||
* @param status ICU error code.
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
static MeasureUnit *createGasolineEnergyDensity(UErrorCode &status);
|
||||
|
||||
/**
|
||||
* Returns by value, unit of pressure: gasoline-energy-density.
|
||||
* Also see {@link #createGasolineEnergyDensity()}.
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
static MeasureUnit getGasolineEnergyDensity();
|
||||
#endif /* U_HIDE_DRAFT_API */
|
||||
|
||||
/**
|
||||
* Returns by pointer, unit of pressure: hectopascal.
|
||||
|
|
|
@ -89,15 +89,13 @@ class U_I18N_API Measure: public UObject {
|
|||
*/
|
||||
bool operator==(const UObject& other) const;
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* Inequality operator. Returns true if this object is not equal to the other object.
|
||||
* @param other the object to compare with
|
||||
* @return true if the objects are not equal
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
inline bool operator!=(const UObject& other) const { return !operator==(other); }
|
||||
#endif // U_HIDE_DRAFT_API
|
||||
|
||||
/**
|
||||
* Return a reference to the numeric value of this object. The
|
||||
|
|
|
@ -445,7 +445,6 @@ public:
|
|||
UnicodeString& canonicalID, UBool& isSystemID, UErrorCode& status);
|
||||
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* Returns the preferred time zone ID in the IANA time zone database for the given time zone ID.
|
||||
* There are two types of preferred IDs. The first type is the one defined in zone.tab file,
|
||||
|
@ -469,11 +468,10 @@ public:
|
|||
* @param status Receives the status. When the given time zone ID is not a known time zone
|
||||
* ID, U_ILLEGAL_ARGUMENT_ERROR is set.
|
||||
* @return A reference to the result.
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
static UnicodeString& U_EXPORT2 getIanaID(const UnicodeString&id, UnicodeString& ianaID,
|
||||
UErrorCode& status);
|
||||
#endif // U_HIDE_DRAFT_API
|
||||
|
||||
/**
|
||||
* Converts a system time zone ID to an equivalent Windows time zone ID. For example,
|
||||
|
|
|
@ -1387,7 +1387,6 @@ U_CAPI int32_t U_EXPORT2
|
|||
ucal_getCanonicalTimeZoneID(const UChar* id, int32_t len,
|
||||
UChar* result, int32_t resultCapacity, UBool *isSystemID, UErrorCode* status);
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* Returns the preferred time zone ID in the IANA time zone database for the given time zone ID.
|
||||
* There are two types of preferred IDs. The first type is the one defined in zone.tab file,
|
||||
|
@ -1411,12 +1410,11 @@ ucal_getCanonicalTimeZoneID(const UChar* id, int32_t len,
|
|||
* @param status Receives the status. When the given time zone ID is not a known system time zone
|
||||
* ID, U_ILLEGAL_ARGUMENT_ERROR is set.
|
||||
* @return The result string length, not including the terminating null.
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI int32_t U_EXPORT2
|
||||
ucal_getIanaTimeZoneID(const UChar* id, int32_t len,
|
||||
UChar* result, int32_t resultCapacity, UErrorCode* status);
|
||||
#endif // U_HIDE_DRAFT_API
|
||||
|
||||
/**
|
||||
* Get the resource keyword value string designating the calendar type for the UCalendar.
|
||||
|
|
|
@ -1224,7 +1224,6 @@ uspoof_areConfusable(const USpoofChecker *sc,
|
|||
const UChar *id2, int32_t length2,
|
||||
UErrorCode *status);
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* Check whether two specified strings are visually confusable when
|
||||
* displayed in a context with the given paragraph direction.
|
||||
|
@ -1269,13 +1268,12 @@ uspoof_areConfusable(const USpoofChecker *sc,
|
|||
* enum USpoofChecks. Zero is returned if the identifiers
|
||||
* are not confusable.
|
||||
*
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI uint32_t U_EXPORT2 uspoof_areBidiConfusable(const USpoofChecker *sc, UBiDiDirection direction,
|
||||
const UChar *id1, int32_t length1,
|
||||
const UChar *id2, int32_t length2,
|
||||
UErrorCode *status);
|
||||
#endif /* U_HIDE_DRAFT_API */
|
||||
|
||||
/**
|
||||
* A version of {@link uspoof_areConfusable} accepting strings in UTF-8 format.
|
||||
|
@ -1308,7 +1306,6 @@ uspoof_areConfusableUTF8(const USpoofChecker *sc,
|
|||
const char *id2, int32_t length2,
|
||||
UErrorCode *status);
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* A version of {@link uspoof_areBidiConfusable} accepting strings in UTF-8 format.
|
||||
*
|
||||
|
@ -1332,7 +1329,7 @@ uspoof_areConfusableUTF8(const USpoofChecker *sc,
|
|||
* enum USpoofChecks. Zero is returned if the strings
|
||||
* are not confusable.
|
||||
*
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*
|
||||
* @see uspoof_areBidiConfusable
|
||||
*/
|
||||
|
@ -1340,7 +1337,6 @@ U_CAPI uint32_t U_EXPORT2 uspoof_areBidiConfusableUTF8(const USpoofChecker *sc,
|
|||
const char *id1, int32_t length1,
|
||||
const char *id2, int32_t length2,
|
||||
UErrorCode *status);
|
||||
#endif /* U_HIDE_DRAFT_API */
|
||||
|
||||
/**
|
||||
* Get the "skeleton" for an identifier.
|
||||
|
@ -1380,7 +1376,6 @@ uspoof_getSkeleton(const USpoofChecker *sc,
|
|||
UChar *dest, int32_t destCapacity,
|
||||
UErrorCode *status);
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* Get the "bidiSkeleton" for an identifier and a direction.
|
||||
* Skeletons are a transformation of the input identifier;
|
||||
|
@ -1410,14 +1405,13 @@ uspoof_getSkeleton(const USpoofChecker *sc,
|
|||
* is always that of the complete skeleton, even when the
|
||||
* supplied buffer is too small (or of zero length)
|
||||
*
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
* @see uspoof_areBidiConfusable
|
||||
*/
|
||||
U_CAPI int32_t U_EXPORT2 uspoof_getBidiSkeleton(const USpoofChecker *sc,
|
||||
UBiDiDirection direction,
|
||||
const UChar *id, int32_t length,
|
||||
UChar *dest, int32_t destCapacity, UErrorCode *status);
|
||||
#endif /* U_HIDE_DRAFT_API */
|
||||
|
||||
/**
|
||||
* Get the "skeleton" for an identifier.
|
||||
|
@ -1459,7 +1453,6 @@ uspoof_getSkeletonUTF8(const USpoofChecker *sc,
|
|||
char *dest, int32_t destCapacity,
|
||||
UErrorCode *status);
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* Get the "bidiSkeleton" for an identifier and a direction.
|
||||
* Skeletons are a transformation of the input identifier;
|
||||
|
@ -1492,12 +1485,11 @@ uspoof_getSkeletonUTF8(const USpoofChecker *sc,
|
|||
* is always that of the complete skeleton, even when the
|
||||
* supplied buffer is too small (or of zero length)
|
||||
*
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_CAPI int32_t U_EXPORT2 uspoof_getBidiSkeletonUTF8(const USpoofChecker *sc, UBiDiDirection direction,
|
||||
const char *id, int32_t length, char *dest,
|
||||
int32_t destCapacity, UErrorCode *status);
|
||||
#endif /* U_HIDE_DRAFT_API */
|
||||
|
||||
/**
|
||||
* Get the set of Candidate Characters for Inclusion in Identifiers, as defined
|
||||
|
@ -1736,7 +1728,6 @@ uspoof_areConfusableUnicodeString(const USpoofChecker *sc,
|
|||
const icu::UnicodeString &s2,
|
||||
UErrorCode *status);
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* A version of {@link uspoof_areBidiConfusable} accepting UnicodeStrings.
|
||||
*
|
||||
|
@ -1756,7 +1747,7 @@ uspoof_areConfusableUnicodeString(const USpoofChecker *sc,
|
|||
* enum USpoofChecks. Zero is returned if the identifiers
|
||||
* are not confusable.
|
||||
*
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*
|
||||
* @see uspoof_areBidiConfusable
|
||||
*/
|
||||
|
@ -1765,7 +1756,6 @@ U_CAPI uint32_t U_EXPORT2 uspoof_areBidiConfusableUnicodeString(const USpoofChec
|
|||
const icu::UnicodeString &s1,
|
||||
const icu::UnicodeString &s2,
|
||||
UErrorCode *status);
|
||||
#endif /* U_HIDE_DRAFT_API */
|
||||
|
||||
/**
|
||||
* Get the "skeleton" for an identifier.
|
||||
|
@ -1797,7 +1787,6 @@ uspoof_getSkeletonUnicodeString(const USpoofChecker *sc,
|
|||
icu::UnicodeString &dest,
|
||||
UErrorCode *status);
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* Get the "bidiSkeleton" for an identifier and a direction.
|
||||
* Skeletons are a transformation of the input identifier;
|
||||
|
@ -1820,12 +1809,11 @@ uspoof_getSkeletonUnicodeString(const USpoofChecker *sc,
|
|||
* perform the check.
|
||||
* @return A reference to the destination (skeleton) string.
|
||||
*
|
||||
* @draft ICU 74
|
||||
* @stable ICU 74
|
||||
*/
|
||||
U_I18N_API icu::UnicodeString &U_EXPORT2 uspoof_getBidiSkeletonUnicodeString(
|
||||
const USpoofChecker *sc, UBiDiDirection direction, const icu::UnicodeString &id,
|
||||
icu::UnicodeString &dest, UErrorCode *status);
|
||||
#endif /* U_HIDE_DRAFT_API */
|
||||
|
||||
/**
|
||||
* Get the set of Candidate Characters for Inclusion in Identifiers, as defined
|
||||
|
|
Loading…
Add table
Reference in a new issue