42 #define HOST_CHARSET_UNKNOWN 0
43 #define HOST_CHARSET_ASCII 1
44 #define HOST_CHARSET_EBCDIC 2
46 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
47 #define HOST_CHARSET HOST_CHARSET_ASCII
49 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
50 #define HOST_CHARSET HOST_CHARSET_EBCDIC
52 #define HOST_CHARSET HOST_CHARSET_UNKNOWN
88 #define _sch_test(c, bit) (_sch_istable[(c)&0xff] & (unsigned short)(bit))
90 #define ISALPHA(c) _sch_test(c, _sch_isalpha)
91 #define ISALNUM(c) _sch_test(c, _sch_isalnum)
92 #define ISBLANK(c) _sch_test(c, _sch_isblank)
93 #define ISCNTRL(c) _sch_test(c, _sch_iscntrl)
94 #define ISDIGIT(c) _sch_test(c, _sch_isdigit)
95 #define ISGRAPH(c) _sch_test(c, _sch_isgraph)
96 #define ISLOWER(c) _sch_test(c, _sch_islower)
97 #define ISPRINT(c) _sch_test(c, _sch_isprint)
98 #define ISPUNCT(c) _sch_test(c, _sch_ispunct)
99 #define ISSPACE(c) _sch_test(c, _sch_isspace)
100 #define ISUPPER(c) _sch_test(c, _sch_isupper)
101 #define ISXDIGIT(c) _sch_test(c, _sch_isxdigit)
103 #define ISIDNUM(c) _sch_test(c, _sch_isidnum)
104 #define ISIDST(c) _sch_test(c, _sch_isidst)
105 #define IS_ISOBASIC(c) _sch_test(c, _sch_isbasic)
106 #define IS_VSPACE(c) _sch_test(c, _sch_isvsp)
107 #define IS_NVSPACE(c) _sch_test(c, _sch_isnvsp)
108 #define IS_SPACE_OR_NUL(c) _sch_test(c, _sch_iscppsp)
113 #define TOUPPER(c) _sch_toupper[(c)&0xff]
114 #define TOLOWER(c) _sch_tolower[(c)&0xff]
125 #define isalpha(c) do_not_use_isalpha_with_safe_ctype
127 #define isalnum(c) do_not_use_isalnum_with_safe_ctype
129 #define iscntrl(c) do_not_use_iscntrl_with_safe_ctype
131 #define isdigit(c) do_not_use_isdigit_with_safe_ctype
133 #define isgraph(c) do_not_use_isgraph_with_safe_ctype
135 #define islower(c) do_not_use_islower_with_safe_ctype
137 #define isprint(c) do_not_use_isprint_with_safe_ctype
139 #define ispunct(c) do_not_use_ispunct_with_safe_ctype
141 #define isspace(c) do_not_use_isspace_with_safe_ctype
143 #define isupper(c) do_not_use_isupper_with_safe_ctype
145 #define isxdigit(c) do_not_use_isxdigit_with_safe_ctype
147 #define toupper(c) do_not_use_toupper_with_safe_ctype
149 #define tolower(c) do_not_use_tolower_with_safe_ctype
const unsigned char _sch_toupper[256]
const unsigned short _sch_istable[256]
const unsigned char _sch_tolower[256]