1 /**
2  * D header file for C99.
3  *
4  * $(C_HEADER_DESCRIPTION pubs.opengroup.org/onlinepubs/009695399/basedefs/_wctype.h.html, _wctype.h)
5  *
6  * Copyright: Copyright Sean Kelly 2005 - 2009.
7  * License: Distributed under the
8  *      $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
9  *    (See accompanying file LICENSE)
10  * Authors:   Sean Kelly
11  * Source:    $(DRUNTIMESRC core/stdc/_wctype.d)
12  * Standards: ISO/IEC 9899:1999 (E)
13  */
14 
15 module core.stdc.wctype;
16 
17 public  import core.stdc.wchar_; // for wint_t, WEOF
18 
19 extern (C):
20 @trusted: // Only a couple of functions below operate on unsafe C strings.
21 nothrow:
22 @nogc:
23 
24 ///
25 alias wchar_t wctrans_t;
26 ///
27 alias wchar_t wctype_t;
28 
29 ///
30 pure int iswalnum(wint_t wc);
31 ///
32 pure int iswalpha(wint_t wc);
33 ///
34 pure int iswblank(wint_t wc);
35 ///
36 pure int iswcntrl(wint_t wc);
37 ///
38 pure int iswdigit(wint_t wc);
39 ///
40 pure int iswgraph(wint_t wc);
41 ///
42 pure int iswlower(wint_t wc);
43 ///
44 pure int iswprint(wint_t wc);
45 ///
46 pure int iswpunct(wint_t wc);
47 ///
48 pure int iswspace(wint_t wc);
49 ///
50 pure int iswupper(wint_t wc);
51 ///
52 pure int iswxdigit(wint_t wc);
53 
54 ///
55 int       iswctype(wint_t wc, wctype_t desc);
56 ///
57 @system wctype_t  wctype(const scope char* property);
58 ///
59 pure wint_t    towlower(wint_t wc);
60 ///
61 pure wint_t    towupper(wint_t wc);
62 ///
63 wint_t    towctrans(wint_t wc, wctrans_t desc);
64 ///
65 @system wctrans_t wctrans(const scope char* property);