MCPcopy Create free account
hub / github.com/alibaba/zvec / parse_codepoint_range

Function parse_codepoint_range

scripts/generate_standard_tokenizer_unicode.py:48–53  ·  view source on GitHub ↗
(field)

Source from the content-addressed store, hash-verified

46
47
48def parse_codepoint_range(field):
49 if ".." in field:
50 start, end = field.split("..", 1)
51 return int(start, 16), int(end, 16)
52 cp = int(field, 16)
53 return cp, cp
54
55
56def parse_property_file(path, accepted_properties):

Callers 2

parse_property_fileFunction · 0.85
parse_range_propertiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected