68a1743747c4cbdd04c08c7448cef478ae983301
[musl] / src / ctype / iswspace.c
1 #include <wchar.h>
2 #include <wctype.h>
3 #include <ctype.h>
4
5 int iswspace(wint_t wc)
6 {
7         static const wchar_t spaces[] = {
8                 ' ', '\t', '\n', '\r', 11, 12,  0x0085,
9                 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005,
10                 0x2006, 0x2008, 0x2009, 0x200a, 0x200b,
11                 0x2028, 0x2029, 0x2050, 0x3000, 0
12         };
13         if (wcschr(spaces, wc)) return 1;
14         return 0;
15 }