X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fwctype.h;h=1c50bfc2810ec21c6e6f94b659456bf0e4ff8936;hb=70f1c6f7c9d515ef426da68973511f46de57005a;hp=9db569470a90179d8ae7c2d4d89ebcfc7bb739ed;hpb=1e221deb9ee725a14b3656f94e2763f8faeb18dc;p=pdclib diff --git a/includes/wctype.h b/includes/wctype.h index 9db5694..1c50bfc 100644 --- a/includes/wctype.h +++ b/includes/wctype.h @@ -4,12 +4,43 @@ // 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 +// TODO: Documentation + +// ---------------------------------------------------------------------------- +// TYPEDEFS + +typedef wctrans_t; // TODO - personality? +typedef wctype_t; // TODO - personality? +typedef wint_t; // TODO - personality? + +// ---------------------------------------------------------------------------- +// 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