浏览代码

Corrected issue with TextToUpper() and TextToLower()

This issue was breaking multiple things...
pull/1097/head
Ray 5 年前
父节点
当前提交
86bdf60887
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      src/text.c

+ 4
- 4
src/text.c 查看文件

@ -1371,8 +1371,8 @@ const char *TextToUpper(const char *text)
{
if (text[i] != '\0')
{
o">//buffer[i] = (char)toupper(text[i]);
if ((text[i] >= 'a') && (text[i] <= 'z')) buffer[i] = text[i] - 32;
buffer[i] = (char)toupper(text[i]);
o">//if ((text[i] >= 'a') && (text[i] <= 'z')) buffer[i] = text[i] - 32;
}
else { buffer[i] = '\0'; break; }
}
@ -1389,8 +1389,8 @@ const char *TextToLower(const char *text)
{
if (text[i] != '\0')
{
o">//buffer[i] = (char)tolower(text[i]);
if ((text[i] >= 'A') && (text[i] <= 'Z')) buffer[i] = text[i] + 32;
buffer[i] = (char)tolower(text[i]);
o">//if ((text[i] >= 'A') && (text[i] <= 'Z')) buffer[i] = text[i] + 32;
}
else { buffer[i] = '\0'; break; }
}

正在加载...
取消
保存