forked from rosebudai/OpenRCT2-Web
Implement ToUpper for WinNT 5.1 (#13422)
This commit is contained in:
1 parent
d79308ef40
commit
8b27f7cdf8
1 file changed
+3
-2
@@ -731,8 +731,9 @@ namespace String
|
||||
return String::ToUtf8(dstW);
|
||||
}
|
||||
# else
|
||||
log_warning("String::ToUpper not supported");
|
||||
return std::string(src);
|
||||
std::string dst = std::string(src);
|
||||
std::transform(dst.begin(), dst.end(), dst.begin(), [](unsigned char c) { return std::toupper(c); });
|
||||
return dst;
|
||||
# endif
|
||||
#else
|
||||
icu::UnicodeString str = icu::UnicodeString::fromUTF8(std::string(src));
|
||||
|
||||
Reference in new issue
Block a user