You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Update HarfBuzz, ICU and FreeType
HarfBuzz: Update to version 7.3.0 ICU4C: Update to version 73.1 FreeType: Update to version 2.13.0
This commit is contained in:
6
thirdparty/icu4c/common/locmap.cpp
vendored
6
thirdparty/icu4c/common/locmap.cpp
vendored
@@ -1054,7 +1054,7 @@ uprv_convertToPosix(uint32_t hostid, char *posixID, int32_t posixIDCapacity, UEr
|
||||
uint16_t langID;
|
||||
uint32_t localeIndex;
|
||||
UBool bLookup = true;
|
||||
const char *pPosixID = NULL;
|
||||
const char *pPosixID = nullptr;
|
||||
|
||||
#if U_PLATFORM_HAS_WIN32_API && UCONFIG_USE_WINDOWS_LCID_MAPPING_API
|
||||
static_assert(ULOC_FULLNAME_CAPACITY > LOCALE_NAME_MAX_LENGTH, "Windows locale names have smaller length than ICU locale names.");
|
||||
@@ -1110,7 +1110,7 @@ uprv_convertToPosix(uint32_t hostid, char *posixID, int32_t posixIDCapacity, UEr
|
||||
#endif
|
||||
|
||||
if (bLookup) {
|
||||
const char *pCandidate = NULL;
|
||||
const char *pCandidate = nullptr;
|
||||
langID = LANGUAGE_LCID(hostid);
|
||||
|
||||
for (localeIndex = 0; localeIndex < gLocaleCount; localeIndex++) {
|
||||
@@ -1123,7 +1123,7 @@ uprv_convertToPosix(uint32_t hostid, char *posixID, int32_t posixIDCapacity, UEr
|
||||
/* On Windows, when locale name has a variant, we still look up the hardcoded table.
|
||||
If a match in the hardcoded table is longer than the Windows locale name without
|
||||
variant, we use the one as the result */
|
||||
if (pCandidate && (pPosixID == NULL || uprv_strlen(pCandidate) > uprv_strlen(pPosixID))) {
|
||||
if (pCandidate && (pPosixID == nullptr || uprv_strlen(pCandidate) > uprv_strlen(pPosixID))) {
|
||||
pPosixID = pCandidate;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user