mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Implement ToUpper for WinNT 5.1 (#13422)
This commit is contained in:
committed by
GitHub
parent
d79308ef40
commit
8b27f7cdf8
@@ -731,8 +731,9 @@ namespace String
|
|||||||
return String::ToUtf8(dstW);
|
return String::ToUtf8(dstW);
|
||||||
}
|
}
|
||||||
# else
|
# else
|
||||||
log_warning("String::ToUpper not supported");
|
std::string dst = std::string(src);
|
||||||
return std::string(src);
|
std::transform(dst.begin(), dst.end(), dst.begin(), [](unsigned char c) { return std::toupper(c); });
|
||||||
|
return dst;
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
icu::UnicodeString str = icu::UnicodeString::fromUTF8(std::string(src));
|
icu::UnicodeString str = icu::UnicodeString::fromUTF8(std::string(src));
|
||||||
|
|||||||
Reference in New Issue
Block a user