On Oct 19, 2011 at 14:25, gri@golang.org wrote: > src/pkg/exp/norm/maketables.go:163: var lastChar rune = 0 ...
12 years, 6 months ago
(2011-10-19 19:04:37 UTC)
#4
On Oct 19, 2011 at 14:25, gri@golang.org wrote:
> src/pkg/exp/norm/maketables.go:163: var lastChar rune = 0
> perhaps:
>
> var lastChar = rune('\x00')
>
> and then we might be able to get rid of the conversion eventually
Done. I've been using \u0000 instead, for Unicode code points.
LGTM http://codereview.appspot.com/5309042/diff/8001/src/pkg/exp/norm/normregtest.go File src/pkg/exp/norm/normregtest.go (right): http://codereview.appspot.com/5309042/diff/8001/src/pkg/exp/norm/normregtest.go#newcode106 src/pkg/exp/norm/normregtest.go:106: r int // used for character by character ...
12 years, 6 months ago
(2011-10-20 16:17:08 UTC)
#5
Issue 5309042: code review 5309042: exp/norm: use rune
(Closed)
Created 12 years, 6 months ago by rsc
Modified 12 years, 6 months ago
Reviewers:
Base URL:
Comments: 2