]> pd.if.org Git - pdclib/blobdiff - functions/wctype/iswctype.c
PDCLIB-1 (PDCLIB-3) Make wide character classification/collation information locale...
[pdclib] / functions / wctype / iswctype.c
index 5c5f7ed1795efcf92624a3d19e7cedafb534b06e..d3de118ab82fa90441e5cec06991ac1d62d3f1a4 100644 (file)
@@ -8,17 +8,22 @@
 #ifndef REGTEST\r
 #include <_PDCLIB_locale.h>\r
 \r
-int iswctype( wint_t wc, wctype_t desc )\r
+int _PDCLIB_iswctype_l( wint_t wc, wctype_t desc, locale_t l )\r
 {\r
     wc = _PDCLIB_unpackwint( wc );\r
 \r
-    _PDCLIB_wcinfo_t *info = _PDCLIB_wcgetinfo( wc );\r
+    _PDCLIB_wcinfo_t *info = _PDCLIB_wcgetinfo( l, wc );\r
 \r
     if(!info) return 0;\r
 \r
     return info->flags & desc;\r
 }\r
 \r
+int iswctype( wint_t wc, wctype_t desc )\r
+{\r
+    return _PDCLIB_iswctype_l( wc, desc, _PDCLIB_threadlocale() );\r
+}\r
+\r
 #endif\r
 \r
 #ifdef TEST\r