Bug 1719554 - Unify most of nsUnicodeProperties.h; r=platform-i18n-reviewers,jfkthame,gregtatum,necko-reviewers,valentin

This unifies most of the calls in nsUnicodeProperties.h. CharType and Script
will be handled in subsequent patches on this bug.

Differential Revision: https://phabricator.services.mozilla.com/D132273
This commit is contained in:
Dan Minor
2021-12-06 18:15:49 +00:00
parent 57984a4b4d
commit 1244a99641
13 changed files with 286 additions and 114 deletions

View File

@@ -177,7 +177,8 @@ enum HSType {
};
static HSType GetHangulSyllableType(uint32_t aCh) {
return HSType(u_getIntPropertyValue(aCh, UCHAR_HANGUL_SYLLABLE_TYPE));
return HSType(intl::UnicodeProperties::GetIntPropertyValue(
aCh, intl::UnicodeProperties::IntProperty::HangulSyllableType));
}
void ClusterIterator::Next() {