We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f0a17d commit 61ce3dfCopy full SHA for 61ce3df
src/xrCore/xrstring.h
@@ -206,7 +206,7 @@ IC void xr_strlwr(shared_str& src)
206
int i = 0;
207
while(lp[i])
208
{
209
- lp[i] = (char) std::toupper(lp[i], std::locale());
+ lp[i] = (char) std::tolower(lp[i], std::locale());
210
i++;
211
}
212
#endif
@@ -217,13 +217,7 @@ IC void xr_strlwr(shared_str& src)
217
218
IC char * xr_strlwr(char * src)
219
220
- int i = 0;
221
- while(src[i])
222
- {
223
- src[i] = (char) toupper(src[i]);// TODO rewrite locale-independent toupper_l()
224
- i++;
225
- }
226
- return src;
+ return SDL_strlwr(src);
227
228
229
#pragma pack(pop)
0 commit comments