Corrected issue with TextToUpper() and TextToLower()
This issue was breaking multiple things...
This commit is contained in:
parent
4b4f052fea
commit
86bdf60887
1 changed files with 4 additions and 4 deletions
|
@ -1371,8 +1371,8 @@ const char *TextToUpper(const char *text)
|
||||||
{
|
{
|
||||||
if (text[i] != '\0')
|
if (text[i] != '\0')
|
||||||
{
|
{
|
||||||
//buffer[i] = (char)toupper(text[i]);
|
buffer[i] = (char)toupper(text[i]);
|
||||||
if ((text[i] >= 'a') && (text[i] <= 'z')) buffer[i] = text[i] - 32;
|
//if ((text[i] >= 'a') && (text[i] <= 'z')) buffer[i] = text[i] - 32;
|
||||||
}
|
}
|
||||||
else { buffer[i] = '\0'; break; }
|
else { buffer[i] = '\0'; break; }
|
||||||
}
|
}
|
||||||
|
@ -1389,8 +1389,8 @@ const char *TextToLower(const char *text)
|
||||||
{
|
{
|
||||||
if (text[i] != '\0')
|
if (text[i] != '\0')
|
||||||
{
|
{
|
||||||
//buffer[i] = (char)tolower(text[i]);
|
buffer[i] = (char)tolower(text[i]);
|
||||||
if ((text[i] >= 'A') && (text[i] <= 'Z')) buffer[i] = text[i] + 32;
|
//if ((text[i] >= 'A') && (text[i] <= 'Z')) buffer[i] = text[i] + 32;
|
||||||
}
|
}
|
||||||
else { buffer[i] = '\0'; break; }
|
else { buffer[i] = '\0'; break; }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue