Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

replaced "toupper" with "idStr::ToUpper" from idLib

  • Loading branch information...
commit 9eb1cfd969171f05aba338f5b66b5e0f6b48b81c 1 parent f1c5b47
Dusan Jocic authored
4 src/engine/botlib/be_ai_chat.cpp
View
@@ -565,7 +565,7 @@ int StringContains(char *str1, char *str2, int casesensitive)
} //end if
else
{
- if(toupper(str1[j]) != toupper(str2[j]))
+ if(idStr::ToUpper(str1[j]) != idStr::ToUpper(str2[j]))
{
break;
}
@@ -616,7 +616,7 @@ char *StringContainsWord(char *str1, char *str2, int casesensitive)
} //end if
else
{
- if(toupper(str1[j]) != toupper(str2[j]))
+ if(idStr::ToUpper(str1[j]) != idStr::ToUpper(str2[j]))
{
break;
}
8 src/engine/qcommon/common.cpp
View
@@ -709,7 +709,7 @@ char *Com_StringContains(char *str1, char *str2, int casesensitive)
}
else
{
- if(toupper(str1[j]) != toupper(str2[j]))
+ if(idStr::ToUpper(str1[j]) != idStr::ToUpper(str2[j]))
{
break;
}
@@ -789,7 +789,7 @@ int Com_Filter(char *filter, char *name, int casesensitive)
}
else
{
- if(toupper(*name) >= toupper(*filter) && toupper(*name) <= toupper(*(filter + 2)))
+ if(idStr::ToUpper(*name) >= toupper(*filter) && idStr::ToUpper(*name) <= idStr::ToUpper(*(filter + 2)))
{
found = qtrue;
}
@@ -807,7 +807,7 @@ int Com_Filter(char *filter, char *name, int casesensitive)
}
else
{
- if(toupper(*filter) == toupper(*name))
+ if(idStr::ToUpper(*filter) == idStr::ToUpper(*name))
{
found = qtrue;
}
@@ -841,7 +841,7 @@ int Com_Filter(char *filter, char *name, int casesensitive)
}
else
{
- if(toupper(*filter) != toupper(*name))
+ if(idStr::ToUpper(*filter) != idStr::ToUpper(*name))
{
return qfalse;
}
Please sign in to comment.
Something went wrong with that request. Please try again.