]> Cypherpunks repositories - gostls13.git/commit
unicode: guarantee that the 32-bit range tables contain only
authorRob Pike <r@golang.org>
Tue, 31 May 2011 23:49:51 +0000 (09:49 +1000)
committerRob Pike <r@golang.org>
Tue, 31 May 2011 23:49:51 +0000 (09:49 +1000)
commit9ec0c01e19db38f809403858fbd4ef6e6d6e03b8
treec09ae63da5d4d07c583f7ff46bc4ff9e25629e51
parent378c806c31ad47b67918f18f75c8b096aa090757
unicode: guarantee that the 32-bit range tables contain only
values >= 16 bits, so the lookup code can be smaller in the
common case.
Also make CaseRange uint32s rather than ints, so if we go to
64-bit ints we don't waste more space.

R=rsc
CC=golang-dev
https://golang.org/cl/4550094
src/pkg/unicode/letter.go
src/pkg/unicode/maketables.go
src/pkg/unicode/tables.go