1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
/*****************************************************************
* @LICENSE@
*****************************************************************/
/* sre_ctype.c
*
* For portability. Some systems have functions tolower, toupper
* as macros (for instance, MIPS M-2000 RISC/os!)
*
* CVS $Id: sre_ctype.c,v 1.4 2003/04/14 16:00:16 eddy Exp $
*/
#include "squidconf.h"
#include <ctype.h>
#include "squid.h"
int
sre_tolower(int c)
{
if (isupper(c)) return tolower(c);
else return c;
}
int
sre_toupper(int c)
{
if (islower(c)) return toupper(c);
else return c;
}
|