Download and parse Unicode CaseFolding.txt, caching in temp directory. Args: version: Unicode version string (e.g., "17.0.0") Returns: Dict mapping codepoints to their folded UTF-8 bytes
(version: str = UNICODE_VERSION)
| 128 | |
| 129 | |
| 130 | def get_case_folding_rules(version: str = UNICODE_VERSION) -> Dict[int, bytes]: |
| 131 | """Download and parse Unicode CaseFolding.txt, caching in temp directory. |
| 132 | |
| 133 | Args: |
| 134 | version: Unicode version string (e.g., "17.0.0") |
| 135 | |
| 136 | Returns: |
| 137 | Dict mapping codepoints to their folded UTF-8 bytes |
| 138 | """ |
| 139 | cache_path = _download_case_folding_file(version) |
| 140 | return parse_case_folding_file(cache_path) |
| 141 | |
| 142 | |
| 143 | def get_case_folding_rules_as_codepoints( |
nothing calls this directly
no test coverage detected
searching dependent graphs…