]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/xis.h
SourceFormat Enforcement
[thirdparty/squid.git] / compat / xis.h
1 /*
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 #ifndef _SQUID_COMPAT_XIS_H
10 #define _SQUID_COMPAT_XIS_H
11
12 #if HAVE_CTYPE_H
13 #include <ctype.h>
14 #endif
15 #define xisspace(x) isspace((unsigned char)x)
16 #define xtoupper(x) toupper((unsigned char)x)
17 #define xtolower(x) tolower((unsigned char)x)
18 #define xisdigit(x) isdigit((unsigned char)x)
19 #define xisascii(x) isascii((unsigned char)x)
20 #define xislower(x) islower((unsigned char)x)
21 #define xisalpha(x) isalpha((unsigned char)x)
22 #define xisprint(x) isprint((unsigned char)x)
23 #define xisalnum(x) isalnum((unsigned char)x)
24 #define xiscntrl(x) iscntrl((unsigned char)x)
25 #define xispunct(x) ispunct((unsigned char)x)
26 #define xisupper(x) isupper((unsigned char)x)
27 #define xisxdigit(x) isxdigit((unsigned char)x)
28 #define xisgraph(x) isgraph((unsigned char)x)
29
30 #endif /* _SQUID_COMPAT_XIS_H */
31