Skip to content

Commit

Permalink
xrCore: fix linux xr_strlwr
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Aug 2, 2018
1 parent 8f0a17d commit 61ce3df
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/xrCore/xrstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ IC void xr_strlwr(shared_str& src)
int i = 0;
while(lp[i])
{
lp[i] = (char) std::toupper(lp[i], std::locale());
lp[i] = (char) std::tolower(lp[i], std::locale());
i++;
}
#endif
Expand All @@ -217,13 +217,7 @@ IC void xr_strlwr(shared_str& src)

IC char * xr_strlwr(char * src)
{
int i = 0;
while(src[i])
{
src[i] = (char) toupper(src[i]);// TODO rewrite locale-independent toupper_l()
i++;
}
return src;
return SDL_strlwr(src);
}

#pragma pack(pop)

0 comments on commit 61ce3df

Please sign in to comment.