1 #ifndef _PLATON_STR_STRCTYPE_H
2 #define _PLATON_STR_STRCTYPE_H
5 # define PLATON_FUNC(_name) _name
7 #ifndef PLATON_FUNC_STR
8 # define PLATON_FUNC_STR(_name) #_name
11 # define strisalnum(s) PLATON_FUNC(strctype_fnc)(s, isalnum)
12 # define strisalpha(s) PLATON_FUNC(strctype_fnc)(s, isalpha)
13 # define strisascii(s) PLATON_FUNC(strctype_fnc)(s, isascii)
14 # define strisblank(s) PLATON_FUNC(strctype_fnc)(s, isblank)
15 # define striscntrl(s) PLATON_FUNC(strctype_fnc)(s, iscntrl)
16 # define strisdigit(s) PLATON_FUNC(strctype_fnc)(s, isdigit)
17 # define strisgraph(s) PLATON_FUNC(strctype_fnc)(s, isgraph)
18 # define strislower(s) PLATON_FUNC(strctype_fnc)(s, islower)
19 # define strisprint(s) PLATON_FUNC(strctype_fnc)(s, isprint)
20 # define strispunct(s) PLATON_FUNC(strctype_fnc)(s, ispunct)
21 # define strisspace(s) PLATON_FUNC(strctype_fnc)(s, isspace)
22 # define strisupper(s) PLATON_FUNC(strctype_fnc)(s, isupper)
23 # define strisxdigit(s) PLATON_FUNC(strctype_fnc)(s, isxdigit)
24 # define strlwr(s) PLATON_FUNC(strtolower)(s)
25 # define strupr(s) PLATON_FUNC(strtoupper)(s)
31 char *PLATON_FUNC(strtolower)(char *s);
32 char *PLATON_FUNC(strtoupper)(char *s);
33 int PLATON_FUNC(strctype_fnc)(const char *s, int (*fnc)(int));
39 #endif /* #ifndef _PLATON_STR_STRCTYPE_H */