mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
e16a7d8f3b
`et` means `expandtab`. ```sh rg 'vi: .* :vi' -l -0 | \ xargs -0 sed -i '' 's/vi: \(.*\) et\(.*\) :vi/vi: \1 xoet\2:vi/' rg 'vi: .* :vi' -l -0 | \ xargs -0 sed -i '' 's/vi: \(.*\)noet\(.*\):vi/vi: \1et\2 :vi/' rg 'vi: .* :vi' -l -0 | \ xargs -0 sed -i '' 's/vi: \(.*\)xoet\(.*\):vi/vi: \1noet\2:vi/' ```
20 lines
1.4 KiB
C
20 lines
1.4 KiB
C
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│
|
|
│ vi: set et ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi │
|
|
╞══════════════════════════════════════════════════════════════════════════════╡
|
|
│ Python 3 │
|
|
│ https://docs.python.org/3/license.html │
|
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
|
#include "third_party/python/Modules/unicodedata.h"
|
|
|
|
/* These ranges need to match makeunicodedata.py:cjk_ranges. */
|
|
int
|
|
_PyUnicode_IsUnifiedIdeograph(Py_UCS4 code)
|
|
{
|
|
return
|
|
(0x3400 <= code && code <= 0x4DB5) || /* CJK Ideograph Extension A */
|
|
(0x4E00 <= code && code <= 0x9FD5) || /* CJK Ideograph */
|
|
(0x20000 <= code && code <= 0x2A6D6) || /* CJK Ideograph Extension B */
|
|
(0x2A700 <= code && code <= 0x2B734) || /* CJK Ideograph Extension C */
|
|
(0x2B740 <= code && code <= 0x2B81D) || /* CJK Ideograph Extension D */
|
|
(0x2B820 <= code && code <= 0x2CEA1); /* CJK Ideograph Extension E */
|
|
}
|