mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
fa20edc44d
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
43 lines
885 B
C
43 lines
885 B
C
#include "libc/nexgen32e/kompressor.h"
|
|
#include "third_party/python/Modules/unicodedata.h"
|
|
/* GENERATED BY third_party/python/Tools/unicode/makeunicodedata.py 3.2 */
|
|
|
|
/* Returns 1 for Unicode characters having the bidirectional
|
|
* type 'WS', 'B' or 'S' or the category 'Zs', 0 otherwise.
|
|
*/
|
|
int _PyUnicode_IsWhitespace(Py_UCS4 ch)
|
|
{
|
|
switch (ch) {
|
|
case 0x0009:
|
|
case 0x000A:
|
|
case 0x000B:
|
|
case 0x000C:
|
|
case 0x000D:
|
|
case 0x001C:
|
|
case 0x001D:
|
|
case 0x001E:
|
|
case 0x001F:
|
|
case 0x0020:
|
|
case 0x0085:
|
|
case 0x00A0:
|
|
case 0x1680:
|
|
case 0x2000:
|
|
case 0x2001:
|
|
case 0x2002:
|
|
case 0x2003:
|
|
case 0x2004:
|
|
case 0x2005:
|
|
case 0x2006:
|
|
case 0x2007:
|
|
case 0x2008:
|
|
case 0x2009:
|
|
case 0x200A:
|
|
case 0x2028:
|
|
case 0x2029:
|
|
case 0x202F:
|
|
case 0x205F:
|
|
case 0x3000:
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|