]> Cypherpunks repositories - gostls13.git/commit
exp/norm: a few minor changes in prepration for a table format change:
authorMarcel van Lohuizen <mpvl@golang.org>
Thu, 2 Feb 2012 12:55:53 +0000 (13:55 +0100)
committerMarcel van Lohuizen <mpvl@golang.org>
Thu, 2 Feb 2012 12:55:53 +0000 (13:55 +0100)
commit8ba20dbdb5c7a77f79409488fb4637f470ab107d
tree275d48b7022da7921c53d99401667d3735cf0036
parentd673c95d6c60a287d3fbb865c8885f635505903f
exp/norm: a few minor changes in prepration for a table format change:
 - Unified bounary conditions for NFC and NFD and removed some indirections.
   This enforces boundaries at the character level, which is typically what
   the user expects. (NFD allows a boundary between 'a' and '`', for example,
   which may give unexpected results for collation.  The current implementation
   is already stricter than the standard, so nothing much changes.  This change
   just formalizes it.
 - Moved methods of qcflags to runeInfo.
 - Swapped YesC and YesMaybe bits in qcFlags. This is to aid future changes.
 - runeInfo return values use named fields in preperation for struct change.
 - Replaced some left-over uint32s with rune.

R=r
CC=golang-dev
https://golang.org/cl/5607050
src/pkg/exp/norm/composition.go
src/pkg/exp/norm/forminfo.go
src/pkg/exp/norm/input.go
src/pkg/exp/norm/maketables.go
src/pkg/exp/norm/normalize.go
src/pkg/exp/norm/tables.go