Process single CaseFolding.txt line, updating togroup.
(codes, fields)
| 240 | togroup = {} |
| 241 | |
| 242 | def DoLine(codes, fields): |
| 243 | """Process single CaseFolding.txt line, updating togroup.""" |
| 244 | (_, foldtype, lower, _) = fields |
| 245 | if foldtype not in ("C", "S"): |
| 246 | return |
| 247 | lower = _UInt(lower) |
| 248 | togroup.setdefault(lower, [lower]).extend(codes) |
| 249 | |
| 250 | ReadUnicodeTable(unicode_dir+"/CaseFolding.txt", 4, DoLine) |
| 251 |