mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 21:13:02 +01:00
Fixed toUpper/toLower string function.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user