diff options
Diffstat (limited to 'wctype/wcextra.c')
-rw-r--r-- | wctype/wcextra.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/wctype/wcextra.c b/wctype/wcextra.c index 111f7ec5d2..7f63e7efeb 100644 --- a/wctype/wcextra.c +++ b/wctype/wcextra.c @@ -1,5 +1,5 @@ /* Additional non standardized wide character classification functions. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. @@ -18,18 +18,20 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include <stdint.h> #define __NO_WCTYPE 1 #include <wctype.h> +#include "cname-lookup.h" + int -iswblank (wint_t wc) +(iswblank) (wint_t wc) { - return __iswctype (wc, _ISwblank); -} + size_t idx; + idx = cname_lookup (wc); + if (idx == ~((size_t) 0)) + return 0; -int -(__iswblank_l) (wint_t wc, __locale_t locale) -{ - return __iswctype_l (wc, _ISwblank, locale); + return __ctype32_b[idx] & _ISwblank; } |