X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=includes%2Fwctype.h;h=32485b9a4d15f06a50e798818574ecb19a78c722;hp=9db569470a90179d8ae7c2d4d89ebcfc7bb739ed;hb=ac3f809c3c10347c110fac3db93af0954eda98bb;hpb=8b8277d2940a8745f85d86a9af3ad6970b5fa52c diff --git a/includes/wctype.h b/includes/wctype.h index 9db5694..32485b9 100644 --- a/includes/wctype.h +++ b/includes/wctype.h @@ -4,12 +4,41 @@ // Public Domain C Library - http://pdclib.sourceforge.net // This code is Public Domain. Use, modify, and redistribute at will. // ---------------------------------------------------------------------------- -// Provides a wchar_t equivalent to ctype.h. +// Wide character classification and mapping utilities // ---------------------------------------------------------------------------- #ifndef __WCTYPE_H #define __WCTYPE_H __WCTYPE_H -// TODO +// ---------------------------------------------------------------------------- +// TYPEDEFS + +typedef wctrans_t; +typedef wctype_t; +typedef wint_t; + +// ---------------------------------------------------------------------------- +// FUNCTIONS + +int iswalnum( wint_t c ); +int iswalpha( wint_t c ); +int iswblank( wint_t c ); +int iswcntrl( wint_t c ); +int iswctype( wint_t c, wctype_t category ); +int iswdigit( wint_t c ); +int iswgraph( wint_t c ); +int iswlower( wint_t c ); +int iswprint( wint_t c ); +int iswpunct( wint_t c ); +int iswspace( wint_t c ); +int iswupper( wint_t c ); +int iswxdigit( wint_t c ); + +wint_t towctrans( wint_t c, wctrans_t category ); +wint_t towlower( wint_t c ); +wint_t towupper( wint_t c ); + +wctrans_t wctrans( const char * property ); +wctype_t wctype( const char * property ); #endif // __WCTYPE_H