Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / ctype / iswctype_l.c
blob506972d7c37eedfe0213ffc741d9defdad51b671
1 /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */
2 #include <_ansi.h>
3 #include <wctype.h>
4 #include "local.h"
6 int
7 iswctype_l (wint_t c, wctype_t desc, struct __locale_t *locale)
9 switch (desc)
11 case WC_ALNUM:
12 return iswalnum_l (c, locale);
13 case WC_ALPHA:
14 return iswalpha_l (c, locale);
15 case WC_BLANK:
16 return iswblank_l (c, locale);
17 case WC_CNTRL:
18 return iswcntrl_l (c, locale);
19 case WC_DIGIT:
20 return iswdigit_l (c, locale);
21 case WC_GRAPH:
22 return iswgraph_l (c, locale);
23 case WC_LOWER:
24 return iswlower_l (c, locale);
25 case WC_PRINT:
26 return iswprint_l (c, locale);
27 case WC_PUNCT:
28 return iswpunct_l (c, locale);
29 case WC_SPACE:
30 return iswspace_l (c, locale);
31 case WC_UPPER:
32 return iswupper_l (c, locale);
33 case WC_XDIGIT:
34 return iswxdigit_l (c, locale);
35 default:
36 return 0; /* eliminate warning */
39 /* otherwise unknown */
40 return 0;