]> pd.if.org Git - pdclib/blob - includes/wctype.h
64012843287c69c7f15ac0f13e200bbd8d81f0a2
[pdclib] / includes / wctype.h
1 // ----------------------------------------------------------------------------
2 // $Id$
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
7 // Wide character classification and mapping utilities
8 // ----------------------------------------------------------------------------
9
10 #ifndef __WCTYPE_H
11 #define __WCTYPE_H __WCTYPE_H
12
13 // TODO: Documentation
14
15 // ----------------------------------------------------------------------------
16 // TYPEDEFS
17
18 #include "__wint_t.h"
19
20 typedef wctrans_t; // TODO - personality?
21 typedef wctype_t;  // TODO - personality?
22
23 // ----------------------------------------------------------------------------
24 // FUNCTIONS
25
26 int iswalnum( wint_t c );
27 int iswalpha( wint_t c );
28 int iswblank( wint_t c );
29 int iswcntrl( wint_t c );
30 int iswctype( wint_t c, wctype_t category );
31 int iswdigit( wint_t c );
32 int iswgraph( wint_t c );
33 int iswlower( wint_t c );
34 int iswprint( wint_t c );
35 int iswpunct( wint_t c );
36 int iswspace( wint_t c );
37 int iswupper( wint_t c );
38 int iswxdigit( wint_t c );
39
40 wint_t towctrans( wint_t c, wctrans_t category );
41 wint_t towlower( wint_t c );
42 wint_t towupper( wint_t c );
43
44 wctrans_t wctrans( const char * property );
45 wctype_t wctype( const char * property );
46
47 #endif // __WCTYPE_H