/src/core/stdc/wctype.d
D | 44 lines | 25 code | 6 blank | 13 comment | 0 complexity | c93af28b3897a4063a8bb89941c65436 MD5 | raw file
1/** 2 * D header file for C99. 3 * 4 * Copyright: Copyright Sean Kelly 2005 - 2009. 5 * License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. 6 * Authors: Sean Kelly 7 * Standards: ISO/IEC 9899:1999 (E) 8 */ 9 10/* Copyright Sean Kelly 2005 - 2009. 11 * Distributed under the Boost Software License, Version 1.0. 12 * (See accompanying file LICENSE or copy at 13 * http://www.boost.org/LICENSE_1_0.txt) 14 */ 15module core.stdc.wctype; 16 17public import core.stdc.wchar_; // for wint_t, WEOF 18 19extern (C): 20@trusted: // Only a couple of functions below operate on unsafe C strings. 21nothrow: 22 23alias wchar_t wctrans_t; 24alias wchar_t wctype_t; 25 26int iswalnum(wint_t wc); 27int iswalpha(wint_t wc); 28int iswblank(wint_t wc); 29int iswcntrl(wint_t wc); 30int iswdigit(wint_t wc); 31int iswgraph(wint_t wc); 32int iswlower(wint_t wc); 33int iswprint(wint_t wc); 34int iswpunct(wint_t wc); 35int iswspace(wint_t wc); 36int iswupper(wint_t wc); 37int iswxdigit(wint_t wc); 38 39int iswctype(wint_t wc, wctype_t desc); 40@system wctype_t wctype(in char* property); 41wint_t towlower(wint_t wc); 42wint_t towupper(wint_t wc); 43wint_t towctrans(wint_t wc, wctrans_t desc); 44@system wctrans_t wctrans(in char* property);