9 int _EXFUN(isalnum
, (int __c
));
10 int _EXFUN(isalpha
, (int __c
));
11 int _EXFUN(iscntrl
, (int __c
));
12 int _EXFUN(isdigit
, (int __c
));
13 int _EXFUN(isgraph
, (int __c
));
14 int _EXFUN(islower
, (int __c
));
15 int _EXFUN(isprint
, (int __c
));
16 int _EXFUN(ispunct
, (int __c
));
17 int _EXFUN(isspace
, (int __c
));
18 int _EXFUN(isupper
, (int __c
));
19 int _EXFUN(isxdigit
,(int __c
));
20 int _EXFUN(tolower
, (int __c
));
21 int _EXFUN(toupper
, (int __c
));
23 #ifndef __STRICT_ANSI__
24 int _EXFUN(isascii
, (int __c
));
25 int _EXFUN(toascii
, (int __c
));
26 int _EXFUN(_tolower
, (int __c
));
27 int _EXFUN(_toupper
, (int __c
));
40 #define _ctype_ (rb->_ctype_)
42 extern const unsigned char _ctype_
[257];
46 #define isalpha(c) ((_ctype_+1)[(unsigned char)(c)]&(_U|_L))
47 #define isupper(c) ((_ctype_+1)[(unsigned char)(c)]&_U)
48 #define islower(c) ((_ctype_+1)[(unsigned char)(c)]&_L)
49 #define isdigit(c) ((_ctype_+1)[(unsigned char)(c)]&_N)
50 #define isxdigit(c) ((_ctype_+1)[(unsigned char)(c)]&(_X|_N))
51 #define isspace(c) ((_ctype_+1)[(unsigned char)(c)]&_S)
52 #define ispunct(c) ((_ctype_+1)[(unsigned char)(c)]&_P)
53 #define isalnum(c) ((_ctype_+1)[(unsigned char)(c)]&(_U|_L|_N))
54 #define isprint(c) ((_ctype_+1)[(unsigned char)(c)]&(_P|_U|_L|_N|_B))
55 #define isgraph(c) ((_ctype_+1)[(unsigned char)(c)]&(_P|_U|_L|_N))
56 #define iscntrl(c) ((_ctype_+1)[(unsigned char)(c)]&_C)
57 /* Non-gcc versions will get the library versions, and will be
61 __extension__ ({ int __x = (unsigned char) (c); islower(__x) ? (__x - 'a' + 'A') : __x;})
63 __extension__ ({ int __x = (unsigned char) (c); isupper(__x) ? (__x - 'A' + 'a') : __x;})
65 #endif /* !__cplusplus */
67 #ifndef __STRICT_ANSI__
68 #define isascii(c) ((unsigned char)(c)<=0177)
69 #define toascii(c) ((c)&0177)
75 #endif /* _CTYPE_H_ */