icu4x icon indicating copy to clipboard operation
icu4x copied to clipboard

Handle out-of-range values in Dense ZeroTrie

Open sffc opened this issue 1 month ago • 1 comments

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:

  1. Select the row offset that gets the greatest number of values into the dense matrix.
  2. 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

sffc avatar Dec 11 '25 01:12 sffc

Hey, could I try to handle this?

Cdog1526 avatar Dec 11 '25 05:12 Cdog1526