Change from korean_tolower to ascii_tolower for better understandability

This commit is contained in:
SuntrustDev
2026-02-09 02:41:59 +01:00
parent 73defc20d0
commit 6929730dd6
5 changed files with 12 additions and 13 deletions

View File

@@ -3,13 +3,12 @@
static std::list<std::string> s_stList;
char korean_tolower(const char c)
char ascii_tolower(const char c)
{
char ret = c;
if (c >= 'A' && c <= 'Z')
ret = c - 'A' + 'a';
assert(ret == tolower(c));
return ret;
}
@@ -25,7 +24,7 @@ std::string& stl_static_string(const char * c_sz)
void stl_lowers(std::string& rstRet)
{
for (size_t i = 0; i < rstRet.length(); ++i)
rstRet[i] = korean_tolower(rstRet[i]);
rstRet[i] = ascii_tolower(rstRet[i]);
}
int split_string(const std::string& input, const std::string& delimiter, std::vector<std::string>& results, bool includeEmpties)