mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
ICU4C: Update to version 74.1
This commit is contained in:
parent
6afd320984
commit
5e55c6c611
65 changed files with 8399 additions and 6799 deletions
13
thirdparty/icu4c/common/uts46.cpp
vendored
13
thirdparty/icu4c/common/uts46.cpp
vendored
|
|
@ -669,14 +669,6 @@ UTS46::mapDevChars(UnicodeString &dest, int32_t labelStart, int32_t mappingStart
|
|||
return length;
|
||||
}
|
||||
|
||||
// Some non-ASCII characters are equivalent to sequences with
|
||||
// non-LDH ASCII characters. To find them:
|
||||
// grep disallowed_STD3_valid IdnaMappingTable.txt (or uts46.txt)
|
||||
static inline UBool
|
||||
isNonASCIIDisallowedSTD3Valid(UChar32 c) {
|
||||
return c==0x2260 || c==0x226E || c==0x226F;
|
||||
}
|
||||
|
||||
// Replace the label in dest with the label string, if the label was modified.
|
||||
// If &label==&dest then the label was modified in-place and labelLength
|
||||
// is the new label length, different from label.length().
|
||||
|
|
@ -820,10 +812,7 @@ UTS46::processLabel(UnicodeString &dest,
|
|||
}
|
||||
} else {
|
||||
oredChars|=c;
|
||||
if(disallowNonLDHDot && isNonASCIIDisallowedSTD3Valid(c)) {
|
||||
info.labelErrors|=UIDNA_ERROR_DISALLOWED;
|
||||
*s=0xfffd;
|
||||
} else if(c==0xfffd) {
|
||||
if(c==0xfffd) {
|
||||
info.labelErrors|=UIDNA_ERROR_DISALLOWED;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue