1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 21:26:37 +02:00
This commit is contained in:
Adam
2011-11-08 17:29:16 -05:00
parent 97b9055f92
commit b5ff856f47
85 changed files with 1277 additions and 1278 deletions
-29
View File
@@ -49,35 +49,6 @@ bool IsFile(const Anope::string &filename)
return false;
}
/**
* toupper: Like the ANSI functions, but make sure we return an
* int instead of a (signed) char.
* @param c Char
* @return int
*/
int toupper(char c)
{
if (islower(c))
return static_cast<int>(c) - ('a' - 'A');
else
return static_cast<int>(c);
}
/*************************************************************************/
/**
* tolower: Like the ANSI functions, but make sure we return an
* int instead of a (signed) char.
* @param c Char
* @return int
*/
int tolower(char c)
{
if (isupper(c))
return static_cast<int>(c) + ('a' - 'A');
else
return static_cast<int>(c);
}
/*************************************************************************/