]> pd.if.org Git - pdclib/blobdiff - includes/wctype.h
Some cleanup.
[pdclib] / includes / wctype.h
index 9db569470a90179d8ae7c2d4d89ebcfc7bb739ed..32485b9a4d15f06a50e798818574ecb19a78c722 100644 (file)
@@ -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