2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-02 06:57:26 +00:00

fix(menus): make functions case insensitive

This commit is contained in:
2023-12-10 21:33:02 +01:00
parent 20af6c4ba5
commit b8b76adc73
2 changed files with 3 additions and 2 deletions

View File

@@ -92,12 +92,12 @@ namespace utils
void MakeStringLowerCase(std::string& str)
{
for (auto& c : str)
c = static_cast<char>(tolower(c));
c = static_cast<char>(tolower(static_cast<unsigned char>(c)));
}
void MakeStringUpperCase(std::string& str)
{
for (auto& c : str)
c = static_cast<char>(toupper(c));
c = static_cast<char>(toupper(static_cast<unsigned char>(c)));
}
} // namespace utils