Files
Gleb Mazovetskiy 1167b92692 Remove uses of std::tolower
`std::tolower` relies on the C locale, which we try to avoid.
2023-06-18 04:55:47 +01:00

14 lines
254 B
C++

#include "utils/str_case.hpp"
namespace devilution {
void AsciiStrToLower(std::string &str)
{
for (char &c : str) { // NOLINT(readability-identifier-length)
if (c >= 'A' && c <= 'Z')
c += ('a' - 'A');
}
}
} // namespace devilution