Debian Codegraph @

sre_ctype.c

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