mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Use SDL_tolower() instead of libc tolower() in compare_nocase()
This is to avoid having to depend on libc as much as possible.
This commit is contained in:
@@ -67,9 +67,9 @@ bool compare_nocase (std::string first, std::string second)
|
||||
unsigned int i=0;
|
||||
while ( (i<first.length()) && (i<second.length()) )
|
||||
{
|
||||
if (tolower(first[i])<tolower(second[i]))
|
||||
if (SDL_tolower(first[i])<SDL_tolower(second[i]))
|
||||
return true;
|
||||
else if (tolower(first[i])>tolower(second[i]))
|
||||
else if (SDL_tolower(first[i])>SDL_tolower(second[i]))
|
||||
return false;
|
||||
++i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user