Change from korean_tolower to ascii_tolower for better understandability
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user