MCPcopy Index your code
hub / github.com/python/cpython / in_table_a1

Function in_table_a1

Lib/stringprep.py:12–16  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

10assert unicodedata.unidata_version == '3.2.0'
11
12def in_table_a1(code):
13 if unicodedata.category(code) != 'Cn': return False
14 c = ord(code)
15 if 0xFDD0 <= c < 0xFDF0: return False
16 return (c & 0xFFFF) not in (0xFFFE, 0xFFFF)
17
18
19b1_set = set([173, 847, 6150, 6155, 6156, 6157, 8203, 8204, 8205, 8288, 65279] + list(range(65024,65040)))

Callers 1

testMethod · 0.85

Calls

no outgoing calls

Tested by 1

testMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…