mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Update ICU to 76.1
This commit is contained in:
parent
1015a481ff
commit
e698870caa
194 changed files with 13126 additions and 11221 deletions
5
thirdparty/icu4c/common/ulocale.cpp
vendored
5
thirdparty/icu4c/common/ulocale.cpp
vendored
|
|
@ -21,7 +21,10 @@ U_NAMESPACE_USE
|
|||
ULocale*
|
||||
ulocale_openForLocaleID(const char* localeID, int32_t length, UErrorCode* err) {
|
||||
if (U_FAILURE(*err)) { return nullptr; }
|
||||
CharString str(length < 0 ? StringPiece(localeID) : StringPiece(localeID, length), *err);
|
||||
if (length < 0) {
|
||||
return EXTERNAL(icu::Locale::createFromName(localeID).clone());
|
||||
}
|
||||
CharString str(localeID, length, *err); // Make a NUL terminated copy.
|
||||
if (U_FAILURE(*err)) { return nullptr; }
|
||||
return EXTERNAL(icu::Locale::createFromName(str.data()).clone());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue