Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit f9bd884

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 8a4eb9e commit f9bd884

File tree

2 files changed

+1008
-1695
lines changed

2 files changed

+1008
-1695
lines changed

0 commit comments

Comments
 (0)