forked from rosebudai/OpenRCT2-Web
Use tolower in ToLowerAscii()
This commit is contained in:
1 file changed
+1
-2
@@ -94,8 +94,7 @@ static u8string ToLowerAscii(u8string_view str)
|
||||
u8string result(str);
|
||||
for (auto& c : result)
|
||||
{
|
||||
if (c >= 'A' && c <= 'Z')
|
||||
c += 'a' - 'A';
|
||||
c = tolower(c);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user