]> Cypherpunks repositories - gostls13.git/commit
fix string range to have full unicode range (up to 10FFFF).
authorRob Pike <r@golang.org>
Mon, 13 Apr 2009 00:01:17 +0000 (17:01 -0700)
committerRob Pike <r@golang.org>
Mon, 13 Apr 2009 00:01:17 +0000 (17:01 -0700)
commit54ec719391f1516a8bcbe8e5a8ac6ba2764a646d
treed32d2a8598ce38c4d0b60ae2b367a3a520d063ac
parent9ddeb2105f6c6b87a15bc020684aa2b8f97678d4
fix string range to have full unicode range (up to 10FFFF).
add test for string range.

test has minor failure: after loop the index == len(s); should be len(s)-1
in this case.  according to spec, vars are left at position at last
iteration.

R=ken,rsc
DELTA=259  (161 added, 96 deleted, 2 changed)
OCL=27343
CL=27343
src/runtime/rune.c
src/runtime/runtime.h
src/runtime/string.c
test/golden.out
test/stringrange.go [new file with mode: 0644]