Fixed toUpper/toLower string function.

This commit is contained in:
Бранимир Караџић
2021-12-04 07:36:43 -08:00
parent 264028c421
commit cea0995f2d
2 changed files with 6 additions and 7 deletions

View File

@@ -134,7 +134,7 @@ namespace bx
{
for (int32_t ii = 0; ii < _len; ++ii)
{
*_inOutStr = toLower(*_inOutStr);
_inOutStr[ii] = toLower(_inOutStr[ii]);
}
}
@@ -153,7 +153,7 @@ namespace bx
{
for (int32_t ii = 0; ii < _len; ++ii)
{
*_inOutStr = toUpper(*_inOutStr);
_inOutStr[ii] = toUpper(_inOutStr[ii]);
}
}
@@ -879,11 +879,6 @@ namespace bx
return 0;
}
if (_param.upper)
{
toUpperUnsafe(str, len);
}
const char* dot = strFind(str, INT32_MAX, '.');
if (NULL != dot)
{