mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Added support for building against ICU 76.1 and later
This commit is contained in:
parent
739f6d3715
commit
b50b4d9d0a
|
@ -219,7 +219,9 @@ namespace Utils
|
||||||
icu::UnicodeString iterateString {
|
icu::UnicodeString iterateString {
|
||||||
icu::UnicodeString::fromUTF8(stringArg.c_str()).toLower()};
|
icu::UnicodeString::fromUTF8(stringArg.c_str()).toLower()};
|
||||||
|
|
||||||
if (iterateString != nullptr) {
|
if (iterateString.isBogus())
|
||||||
|
return stringArg;
|
||||||
|
|
||||||
iterator->setText(iterateString);
|
iterator->setText(iterateString);
|
||||||
int32_t pos {iterator->first()};
|
int32_t pos {iterator->first()};
|
||||||
int32_t lastPos {pos};
|
int32_t lastPos {pos};
|
||||||
|
@ -230,10 +232,6 @@ namespace Utils
|
||||||
pos = iterator->next();
|
pos = iterator->next();
|
||||||
lastPos = pos;
|
lastPos = pos;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else {
|
|
||||||
return stringArg;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string stringCapitalized;
|
std::string stringCapitalized;
|
||||||
return iterateString.toUTF8String(stringCapitalized);
|
return iterateString.toUTF8String(stringCapitalized);
|
||||||
|
|
Loading…
Reference in a new issue