Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / ctype / iswgraph_l.c
blobb8a5866e954e322fb43739362982a601200da76a
1 /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */
2 #include <_ansi.h>
3 #include <wctype.h>
4 #include "local.h"
5 #include "categories.h"
7 int
8 iswgraph_l (wint_t c, struct __locale_t *locale)
10 #ifdef _MB_CAPABLE
11 //return iswprint (c, locale) && !iswspace (c, locale);
12 c = _jp2uc_l (c, locale);
13 enum category cat = category (c);
14 return cat != -1
15 && cat != CAT_Cc && cat != CAT_Cf
16 && cat != CAT_Cs // Surrogate
17 && cat != CAT_Zs
18 && cat != CAT_Zl && cat != CAT_Zp // Line/Paragraph Separator
20 #else
21 return iswprint_l (c, locale) && !iswspace_l (c, locale);
22 #endif /* _MB_CAPABLE */