From 7e38b1ea2bf1a0817942275cea89c959bf446d87 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 23 Apr 2012 15:25:23 -0400 Subject: destubify iswalpha and update iswpunct to unicode 6.1 alpha is defined as unicode property "Alphabetic" plus category Nd minus ASCII digits minus 2 special-cased Thai punctuation marks supposedly misclassified by Unicode as letters. punct is defined as all of unicode except control, alphanumeric, and space characters. the tables were generated by a simple tool based on the code posted previously to the mailing list. in the future, this and other code used for maintaining locale/iconv/i18n data will be published either in the main source repository or in a separate locale data generation repository. --- src/ctype/iswalnum.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/ctype/iswalnum.c') diff --git a/src/ctype/iswalnum.c b/src/ctype/iswalnum.c index d3b56674..35dbe02c 100644 --- a/src/ctype/iswalnum.c +++ b/src/ctype/iswalnum.c @@ -1,9 +1,7 @@ #include #include -#undef iswalnum - int iswalnum(wint_t wc) { - return (unsigned)wc-'0' < 10 || iswalpha(wc); + return iswdigit(wc) || iswalpha(wc); } -- cgit v1.2.1