Skip to content

Commit 7baae18

Browse files
committed
Split unicode case LUTs in single and multi variants
The majority of char case replacements are single char replacements, so storing them as [char; 3] wastes a lot of space. This commit splits the replacement tables for both `to_lower` and `to_upper` into two separate tables, one with single-character mappings and one with multi-character mappings. This reduces the binary size for programs using all of these tables with roughly 24K bytes.
1 parent d65f5f2 commit 7baae18

File tree

1 file changed

+963
-1682
lines changed

1 file changed

+963
-1682
lines changed

0 commit comments

Comments
 (0)