Tizen 2.0 Release
[external/libgnutls26.git] / src / cfg / platon / str / strctype.h
1 #ifndef _PLATON_STR_STRCTYPE_H
2 #define _PLATON_STR_STRCTYPE_H
3
4 #ifndef PLATON_FUNC
5 # define PLATON_FUNC(_name) _name
6 #endif
7 #ifndef PLATON_FUNC_STR
8 # define PLATON_FUNC_STR(_name) #_name
9 #endif
10
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)
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
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));
34
35 #ifdef __cplusplus
36 }
37 #endif
38
39 #endif /* #ifndef _PLATON_STR_STRCTYPE_H */
40