icu4x
icu4x copied to clipboard
Handle out-of-range values in Dense ZeroTrie
Currently we panic when trying to build a dense ZeroTrie with values that don't fit in the dense matrix. What we should do instead:
- Select the row offset that gets the greatest number of values into the dense matrix.
- Put all out-of-range values into the primary trie, as we do with sparse rows.
Docs for background: https://unicode-org.github.io/icu4x/rustdoc/zerotrie/dense/struct.ZeroAsciiDenseSparse2dTrieOwned.html
Hey, could I try to handle this?