Refactor uppercase-inclusion in libutf

Previously, the to*rune function would have to jiggle with two
arrays, and it somehow evaded me that it is actually way simpler
to just add another entry to the arrays if needed.
Binary size goes slightly down, e.g. tr statically linked against
musl: 68072 -> 67688

Behind the scenes though the conversion should be a bit faster and,
more importantly, the scary case-conversion function is simplified
and easier to understand.

It also drops nearly half the LOC in upperrune.c and lowerrune.c.
This commit is contained in:
FRIGN 2015-02-12 12:28:45 +01:00
parent 73577f10a0
commit 9565eef895
2 changed files with 2536 additions and 5068 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff