MCPcopy Index your code
hub / github.com/rspeer/python-ftfy / CharData

Class CharData

scripts/char_data_table.py:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11@dataclass
12class CharData:
13 name: str
14 codept: int
15 encodings: list[tuple[str, int]]
16
17 def sort_key(self) -> tuple[int, str, int]:
18 if self.name.startswith("LATIN "):
19 return (0, self.name, self.codept)
20 else:
21 return (1, "", self.codept)
22
23
24SAFE_ENCODINGS = [

Callers 1

show_char_tableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected