You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Update HarfBuzz, ICU and FreeType.
HarfBuzz: Update to version 4.2.1 FreeType: Update to version 2.12.1 ICU: Update to version 71.1
This commit is contained in:
11
thirdparty/icu4c/common/normalizer2impl.cpp
vendored
11
thirdparty/icu4c/common/normalizer2impl.cpp
vendored
@@ -2496,15 +2496,18 @@ void CanonIterData::addToStartSet(UChar32 origin, UChar32 decompLead, UErrorCode
|
||||
// origin is not the first character, or it is U+0000.
|
||||
UnicodeSet *set;
|
||||
if((canonValue&CANON_HAS_SET)==0) {
|
||||
set=new UnicodeSet;
|
||||
if(set==NULL) {
|
||||
errorCode=U_MEMORY_ALLOCATION_ERROR;
|
||||
LocalPointer<UnicodeSet> lpSet(new UnicodeSet, errorCode);
|
||||
set=lpSet.getAlias();
|
||||
if(U_FAILURE(errorCode)) {
|
||||
return;
|
||||
}
|
||||
UChar32 firstOrigin=(UChar32)(canonValue&CANON_VALUE_MASK);
|
||||
canonValue=(canonValue&~CANON_VALUE_MASK)|CANON_HAS_SET|(uint32_t)canonStartSets.size();
|
||||
umutablecptrie_set(mutableTrie, decompLead, canonValue, &errorCode);
|
||||
canonStartSets.addElementX(set, errorCode);
|
||||
canonStartSets.adoptElement(lpSet.orphan(), errorCode);
|
||||
if (U_FAILURE(errorCode)) {
|
||||
return;
|
||||
}
|
||||
if(firstOrigin!=0) {
|
||||
set->add(firstOrigin);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user