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 1d111bc commit d6c3543Copy full SHA for d6c3543
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::tolower(lp[i], std::locale());
+ lp[i] = (char) std::toupper(lp[i], std::locale());
210
i++;
211
}
212
#endif
@@ -217,7 +217,13 @@ IC void xr_strlwr(shared_str& src)
217
218
IC char * xr_strlwr(char * src)
219
220
- return SDL_strlwr(src);
+ 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;
227
228
229
#pragma pack(pop)
0 commit comments