]> Cypherpunks repositories - gostls13.git/commit
exp/locale/collate: adjusted contraction trie to support Myanmar (Burmese),
authorMarcel van Lohuizen <mpvl@golang.org>
Fri, 13 Jul 2012 09:38:00 +0000 (11:38 +0200)
committerMarcel van Lohuizen <mpvl@golang.org>
Fri, 13 Jul 2012 09:38:00 +0000 (11:38 +0200)
commitadc19ac5e3fc4914df4b09400686c964e379532b
tree0ba8ea5da9a872f34a90eab0dacb8590e85a424d
parent656b192c1672e4d4b874dfd3b510cd459406e50d
exp/locale/collate: adjusted contraction trie to support Myanmar (Burmese),
which has a rather large contraction table. The value of the next state
offset now starts after the current block, instead of before.  This is
slightly less efficient (on extra addition per state change), but gives
some extra range for the offsets.
Also introduced constants for final (0) and noIndex (0xFF).
tables.go is updated in a separate CL.

R=r
CC=golang-dev
https://golang.org/cl/6346092
src/pkg/exp/locale/collate/build/contract.go
src/pkg/exp/locale/collate/build/contract_test.go
src/pkg/exp/locale/collate/contract.go
src/pkg/exp/locale/collate/contract_test.go