third_party_icu/icu4c/APIChangeReport.md
zhangdd_ewan 707949bbdb icu升级72.1
Signed-off-by: zhangdd_ewan <zhangdongdong50@huawei.com>
2023-10-31 10:08:47 +08:00

20 KiB

ICU4C API Comparison: ICU 71 with ICU 72

Note

Markdown format of this document is new for ICU 65.

Removed

Removed from ICU 71

File API ICU 71 ICU 72
calendar.h bool icu::Calendar::isSet(EDateFields) const DeprecatedICU 2.6 (missing)
calendar.h int32_t icu::Calendar::get(EDateFields, UErrorCode&) const DeprecatedICU 2.6 (missing)
calendar.h int32_t icu::Calendar::getActualMaximum(EDateFields, UErrorCode&) const DeprecatedICU 2.6 (missing)
calendar.h void icu::Calendar::clear(EDateFields) DeprecatedICU 2.6 (missing)
calendar.h void icu::Calendar::set(EDateFields, int32_t) DeprecatedICU 2.6 (missing)
calendar.h void icu::Calendar::setFirstDayOfWeek(EDaysOfWeek) DeprecatedICU 2.6 (missing)
dtptngen.h static DateTimePatternGenerator* icu::DateTimePatternGenerator::internalMakeInstance(const Locale&, UErrorCode&) Internal (missing)
gregocal.h int32_t icu::GregorianCalendar::getActualMaximum(EDateFields) const DeprecatedICU 2.6 (missing)
numberformatter.h NounClass icu::number::FormattedNumber::getNounClass(UErrorCode&) const DraftICU 71 (missing)
numberformatter.h const char* icu::number::FormattedNumber::getGender(UErrorCode&) const Deprecated (missing)
plurrule.h int32_t icu::PluralRules::getSamples(const UnicodeString&, FixedDecimal*, int32_t, UErrorCode&) Internal (missing)
plurrule.h static bool icu::PluralRules::hasOverride(const Locale&) Internal (missing)
tzrule.h bool icu::InitialTimeZoneRule::getStartInYear(int32_t, int32_t, int32_t, UDate&) const StableICU 3.8 (missing)

Deprecated

Deprecated or Obsoleted in ICU 72

File API ICU 71 ICU 72

Changed

Changed in ICU 72 (old, new)

File API ICU 71 ICU 72
measunit.h static MeasureUnit icu::MeasureUnit::getItem() Draft→StableICU 70
measunit.h static MeasureUnit icu::MeasureUnit::getKilowattHourPer100Kilometer() Draft→StableICU 70
measunit.h static MeasureUnit* icu::MeasureUnit::createItem(UErrorCode&) Draft→StableICU 70
measunit.h static MeasureUnit* icu::MeasureUnit::createKilowattHourPer100Kilometer(UErrorCode&) Draft→StableICU 70
numberformatter.h Derived icu::number::NumberFormatterSettings< Derived >::unitDisplayCase(StringPiece) const& InternalICU 69 Internal
numberformatter.h Derived icu::number::NumberFormatterSettings< Derived >::unitDisplayCase(StringPiece)&& InternalICU 69 Internal
numberrangeformatter.h icu::number::FormattedNumberRange::FormattedNumberRange() Draft→StableICU 70
uchar.h bool u_stringHasBinaryProperty(const UChar*, int32_t, UProperty) Draft→StableICU 70
uchar.h enum UProperty::UCHAR_BASIC_EMOJI Draft→StableICU 70
uchar.h enum UProperty::UCHAR_EMOJI_KEYCAP_SEQUENCE Draft→StableICU 70
uchar.h enum UProperty::UCHAR_RGI_EMOJI_FLAG_SEQUENCE Draft→StableICU 70
uchar.h enum UProperty::UCHAR_RGI_EMOJI_MODIFIER_SEQUENCE Draft→StableICU 70
uchar.h enum UProperty::UCHAR_RGI_EMOJI_TAG_SEQUENCE Draft→StableICU 70
uchar.h enum UProperty::UCHAR_RGI_EMOJI_ZWJ_SEQUENCE Draft→StableICU 70
uchar.h enum UProperty::UCHAR_RGI_EMOJI Draft→StableICU 70
udat.h enum UDateFormatSymbolType::UDAT_NARROW_QUARTERS Draft→StableICU 70
udat.h enum UDateFormatSymbolType::UDAT_STANDALONE_NARROW_QUARTERS Draft→StableICU 70
uformattedvalue.h enum UFieldCategory::UFIELD_CATEGORY_NUMBER_RANGE_SPAN Draft→StableICU 69
uniset.h bool icu::UnicodeSet::hasStrings() const Draft→StableICU 70
uset.h bool uset_hasStrings(const USet*) Draft→StableICU 70
uset.h int32_t uset_getRangeCount(const USet*) Draft→StableICU 70
usetiter.h UnicodeSetIterator & icu::UnicodeSetIterator::skipToStrings() Draft→StableICU 70

Promoted

Promoted to stable in ICU 72

File API ICU 71 ICU 72
measunit.h static MeasureUnit icu::MeasureUnit::getItem() Draft→StableICU 70
measunit.h static MeasureUnit icu::MeasureUnit::getKilowattHourPer100Kilometer() Draft→StableICU 70
measunit.h static MeasureUnit* icu::MeasureUnit::createItem(UErrorCode&) Draft→StableICU 70
measunit.h static MeasureUnit* icu::MeasureUnit::createKilowattHourPer100Kilometer(UErrorCode&) Draft→StableICU 70
numberrangeformatter.h icu::number::FormattedNumberRange::FormattedNumberRange() Draft→StableICU 70
uchar.h bool u_stringHasBinaryProperty(const UChar*, int32_t, UProperty) Draft→StableICU 70
uchar.h enum UBlockCode::UBLOCK_ARABIC_EXTENDED_C (missing) StableICU 72
uchar.h enum UBlockCode::UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_H (missing) StableICU 72
uchar.h enum UBlockCode::UBLOCK_CYRILLIC_EXTENDED_D (missing) StableICU 72
uchar.h enum UBlockCode::UBLOCK_DEVANAGARI_EXTENDED_A (missing) StableICU 72
uchar.h enum UBlockCode::UBLOCK_KAKTOVIK_NUMERALS (missing) StableICU 72
uchar.h enum UBlockCode::UBLOCK_KAWI (missing) StableICU 72
uchar.h enum UBlockCode::UBLOCK_NAG_MUNDARI (missing) StableICU 72
uchar.h enum UProperty::UCHAR_BASIC_EMOJI Draft→StableICU 70
uchar.h enum UProperty::UCHAR_EMOJI_KEYCAP_SEQUENCE Draft→StableICU 70
uchar.h enum UProperty::UCHAR_RGI_EMOJI_FLAG_SEQUENCE Draft→StableICU 70
uchar.h enum UProperty::UCHAR_RGI_EMOJI_MODIFIER_SEQUENCE Draft→StableICU 70
uchar.h enum UProperty::UCHAR_RGI_EMOJI_TAG_SEQUENCE Draft→StableICU 70
uchar.h enum UProperty::UCHAR_RGI_EMOJI_ZWJ_SEQUENCE Draft→StableICU 70
uchar.h enum UProperty::UCHAR_RGI_EMOJI Draft→StableICU 70
udat.h enum UDateFormatSymbolType::UDAT_NARROW_QUARTERS Draft→StableICU 70
udat.h enum UDateFormatSymbolType::UDAT_STANDALONE_NARROW_QUARTERS Draft→StableICU 70
uformattedvalue.h enum UFieldCategory::UFIELD_CATEGORY_NUMBER_RANGE_SPAN Draft→StableICU 69
uniset.h bool icu::UnicodeSet::hasStrings() const Draft→StableICU 70
uscript.h enum UScriptCode::USCRIPT_KAWI (missing) StableICU 72
uscript.h enum UScriptCode::USCRIPT_NAG_MUNDARI (missing) StableICU 72
uset.h bool uset_hasStrings(const USet*) Draft→StableICU 70
uset.h int32_t uset_getRangeCount(const USet*) Draft→StableICU 70
usetiter.h UnicodeSetIterator & icu::UnicodeSetIterator::skipToStrings() Draft→StableICU 70

Added

Added in ICU 72

File API ICU 71 ICU 72
displayoptions.h Builder icu::DisplayOptions::copyToBuilder() const (missing) DraftICU 72
displayoptions.h Builder& icu::DisplayOptions::Builder::setCapitalization(UDisplayOptionsCapitalization) (missing) DraftICU 72
displayoptions.h Builder& icu::DisplayOptions::Builder::setDisplayLength(UDisplayOptionsDisplayLength) (missing) DraftICU 72
displayoptions.h Builder& icu::DisplayOptions::Builder::setGrammaticalCase(UDisplayOptionsGrammaticalCase) (missing) DraftICU 72
displayoptions.h Builder& icu::DisplayOptions::Builder::setNameStyle(UDisplayOptionsNameStyle) (missing) DraftICU 72
displayoptions.h Builder& icu::DisplayOptions::Builder::setNounClass(UDisplayOptionsNounClass) (missing) DraftICU 72
displayoptions.h Builder& icu::DisplayOptions::Builder::setPluralCategory(UDisplayOptionsPluralCategory) (missing) DraftICU 72
displayoptions.h Builder& icu::DisplayOptions::Builder::setSubstituteHandling(UDisplayOptionsSubstituteHandling) (missing) DraftICU 72
displayoptions.h DisplayOptions icu::DisplayOptions::Builder::build() (missing) DraftICU 72
displayoptions.h DisplayOptions& icu::DisplayOptions::operator=(DisplayOptions&&) noexcept=default (missing) DraftICU 72
displayoptions.h DisplayOptions& icu::DisplayOptions::operator=(const DisplayOptions&)=default (missing) DraftICU 72
displayoptions.h UDisplayOptionsCapitalization icu::DisplayOptions::getCapitalization() const (missing) DraftICU 72
displayoptions.h UDisplayOptionsDisplayLength icu::DisplayOptions::getDisplayLength() const (missing) DraftICU 72
displayoptions.h UDisplayOptionsGrammaticalCase icu::DisplayOptions::getGrammaticalCase() const (missing) DraftICU 72
displayoptions.h UDisplayOptionsNameStyle icu::DisplayOptions::getNameStyle() const (missing) DraftICU 72
displayoptions.h UDisplayOptionsNounClass icu::DisplayOptions::getNounClass() const (missing) DraftICU 72
displayoptions.h UDisplayOptionsPluralCategory icu::DisplayOptions::getPluralCategory() const (missing) DraftICU 72
displayoptions.h UDisplayOptionsSubstituteHandling icu::DisplayOptions::getSubstituteHandling() const (missing) DraftICU 72
displayoptions.h icu::DisplayOptions::DisplayOptions(const DisplayOptions&)=default (missing) DraftICU 72
displayoptions.h static Builder icu::DisplayOptions::builder() (missing) DraftICU 72
measunit.h static MeasureUnit icu::MeasureUnit::getQuarter() (missing) DraftICU 72
measunit.h static MeasureUnit icu::MeasureUnit::getTonne() (missing) DraftICU 72
measunit.h static MeasureUnit* icu::MeasureUnit::createQuarter(UErrorCode&) (missing) DraftICU 72
measunit.h static MeasureUnit* icu::MeasureUnit::createTonne(UErrorCode&) (missing) DraftICU 72
numberformatter.h Derived icu::number::NumberFormatterSettings< Derived >::displayOptions(const DisplayOptions&) const& (missing) DraftICU 72
numberformatter.h Derived icu::number::NumberFormatterSettings< Derived >::displayOptions(const DisplayOptions&)&& (missing) DraftICU 72
numberformatter.h UDisplayOptionsNounClass icu::number::FormattedNumber::getNounClass(UErrorCode&) const (missing) DraftICU 72
platform.h #define U_HIDDEN (missing) Internal
plurrule.h int32_t icu::PluralRules::getSamples(const UnicodeString&, DecimalQuantity*, int32_t, UErrorCode&) (missing) Internal
uchar.h enum UBlockCode::UBLOCK_ARABIC_EXTENDED_C (missing) StableICU 72
uchar.h enum UBlockCode::UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_H (missing) StableICU 72
uchar.h enum UBlockCode::UBLOCK_CYRILLIC_EXTENDED_D (missing) StableICU 72
uchar.h enum UBlockCode::UBLOCK_DEVANAGARI_EXTENDED_A (missing) StableICU 72
uchar.h enum UBlockCode::UBLOCK_KAKTOVIK_NUMERALS (missing) StableICU 72
uchar.h enum UBlockCode::UBLOCK_KAWI (missing) StableICU 72
uchar.h enum UBlockCode::UBLOCK_NAG_MUNDARI (missing) StableICU 72
udisplayoptions.h UDisplayOptionsGrammaticalCase udispopt_fromGrammaticalCaseIdentifier(const char*) (missing) DraftICU 72
udisplayoptions.h UDisplayOptionsNounClass udispopt_fromNounClassIdentifier(const char*) (missing) DraftICU 72
udisplayoptions.h UDisplayOptionsPluralCategory udispopt_fromPluralCategoryIdentifier(const char*) (missing) DraftICU 72
udisplayoptions.h const char* udispopt_getGrammaticalCaseIdentifier(UDisplayOptionsGrammaticalCase) (missing) DraftICU 72
udisplayoptions.h const char* udispopt_getNounClassIdentifier(UDisplayOptionsNounClass) (missing) DraftICU 72
udisplayoptions.h const char* udispopt_getPluralCategoryIdentifier(UDisplayOptionsPluralCategory) (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsCapitalization::UDISPOPT_CAPITALIZATION_BEGINNING_OF_SENTENCE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsCapitalization::UDISPOPT_CAPITALIZATION_MIDDLE_OF_SENTENCE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsCapitalization::UDISPOPT_CAPITALIZATION_STANDALONE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsCapitalization::UDISPOPT_CAPITALIZATION_UI_LIST_OR_MENU (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsCapitalization::UDISPOPT_CAPITALIZATION_UNDEFINED (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsDisplayLength::UDISPOPT_DISPLAY_LENGTH_FULL (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsDisplayLength::UDISPOPT_DISPLAY_LENGTH_SHORT (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsDisplayLength::UDISPOPT_DISPLAY_LENGTH_UNDEFINED (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsGrammaticalCase::UDISPOPT_GRAMMATICAL_CASE_ABLATIVE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsGrammaticalCase::UDISPOPT_GRAMMATICAL_CASE_ACCUSATIVE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsGrammaticalCase::UDISPOPT_GRAMMATICAL_CASE_COMITATIVE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsGrammaticalCase::UDISPOPT_GRAMMATICAL_CASE_DATIVE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsGrammaticalCase::UDISPOPT_GRAMMATICAL_CASE_ERGATIVE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsGrammaticalCase::UDISPOPT_GRAMMATICAL_CASE_GENITIVE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsGrammaticalCase::UDISPOPT_GRAMMATICAL_CASE_INSTRUMENTAL (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsGrammaticalCase::UDISPOPT_GRAMMATICAL_CASE_LOCATIVE_COPULATIVE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsGrammaticalCase::UDISPOPT_GRAMMATICAL_CASE_LOCATIVE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsGrammaticalCase::UDISPOPT_GRAMMATICAL_CASE_NOMINATIVE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsGrammaticalCase::UDISPOPT_GRAMMATICAL_CASE_OBLIQUE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsGrammaticalCase::UDISPOPT_GRAMMATICAL_CASE_PREPOSITIONAL (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsGrammaticalCase::UDISPOPT_GRAMMATICAL_CASE_SOCIATIVE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsGrammaticalCase::UDISPOPT_GRAMMATICAL_CASE_UNDEFINED (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsGrammaticalCase::UDISPOPT_GRAMMATICAL_CASE_VOCATIVE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsNameStyle::UDISPOPT_NAME_STYLE_DIALECT_NAMES (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsNameStyle::UDISPOPT_NAME_STYLE_STANDARD_NAMES (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsNameStyle::UDISPOPT_NAME_STYLE_UNDEFINED (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsNounClass::UDISPOPT_NOUN_CLASS_ANIMATE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsNounClass::UDISPOPT_NOUN_CLASS_COMMON (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsNounClass::UDISPOPT_NOUN_CLASS_FEMININE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsNounClass::UDISPOPT_NOUN_CLASS_INANIMATE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsNounClass::UDISPOPT_NOUN_CLASS_MASCULINE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsNounClass::UDISPOPT_NOUN_CLASS_NEUTER (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsNounClass::UDISPOPT_NOUN_CLASS_OTHER (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsNounClass::UDISPOPT_NOUN_CLASS_PERSONAL (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsNounClass::UDISPOPT_NOUN_CLASS_UNDEFINED (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsPluralCategory::UDISPOPT_PLURAL_CATEGORY_FEW (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsPluralCategory::UDISPOPT_PLURAL_CATEGORY_MANY (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsPluralCategory::UDISPOPT_PLURAL_CATEGORY_ONE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsPluralCategory::UDISPOPT_PLURAL_CATEGORY_OTHER (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsPluralCategory::UDISPOPT_PLURAL_CATEGORY_TWO (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsPluralCategory::UDISPOPT_PLURAL_CATEGORY_UNDEFINED (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsPluralCategory::UDISPOPT_PLURAL_CATEGORY_ZERO (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsSubstituteHandling::UDISPOPT_SUBSTITUTE_HANDLING_NO_SUBSTITUTE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsSubstituteHandling::UDISPOPT_SUBSTITUTE_HANDLING_SUBSTITUTE (missing) DraftICU 72
udisplayoptions.h enum UDisplayOptionsSubstituteHandling::UDISPOPT_SUBSTITUTE_HANDLING_UNDEFINED (missing) DraftICU 72
unum.h bool unum_hasAttribute(const UNumberFormat*, UNumberFormatAttribute) (missing) DraftICU 72
uscript.h enum UScriptCode::USCRIPT_KAWI (missing) StableICU 72
uscript.h enum UScriptCode::USCRIPT_NAG_MUNDARI (missing) StableICU 72

Other

Other existing drafts in ICU 72

File API ICU 71 ICU 72
dtptngen.h const UnicodeString& icu::DateTimePatternGenerator::getDateTimeFormat(UDateFormatStyle, UErrorCode&) const DraftICU 71
dtptngen.h void icu::DateTimePatternGenerator::setDateTimeFormat(UDateFormatStyle, const UnicodeString&, UErrorCode&) DraftICU 71
measfmt.h void icu::MeasureFormat::parseObject(const UnicodeString&, Formattable&, ParsePosition&) const DraftICU 53
numberformatter.h static IncrementPrecision icu::number::Precision::incrementExact(uint64_t, int16_t) DraftICU 71
udatpg.h const UChar* udatpg_getDateTimeFormatForStyle(const UDateTimePatternGenerator*, UDateFormatStyle, int32_t*, UErrorCode*) DraftICU 71
udatpg.h void udatpg_setDateTimeFormatForStyle(UDateTimePatternGenerator*, UDateFormatStyle, const UChar*, int32_t, UErrorCode*) DraftICU 71
unum.h enum UNumberFormatFields::UNUM_APPROXIMATELY_SIGN_FIELD DraftICU 71
uregex.h enum URegexpFlag::UREGEX_CANON_EQ DraftICU 2.4

Simplifications

This section shows cases where the signature was "simplified" for the sake of comparison. The simplified form is in bold, followed by all possible variations in "original" form.

Colophon

Contents generated by StableAPI tool on Thu Oct 06 11:06:50 PDT 2022

Copyright © 2019 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html