diff options
| author | Rob Pike <r@golang.org> | 2009-04-12 17:01:17 -0700 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2009-04-12 17:01:17 -0700 |
| commit | 54ec719391f1516a8bcbe8e5a8ac6ba2764a646d (patch) | |
| tree | d32d2a8598ce38c4d0b60ae2b367a3a520d063ac /src/runtime/runtime.h | |
| parent | 9ddeb2105f6c6b87a15bc020684aa2b8f97678d4 (diff) | |
| download | go-54ec719391f1516a8bcbe8e5a8ac6ba2764a646d.tar.xz | |
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
Diffstat (limited to 'src/runtime/runtime.h')
| -rw-r--r-- | src/runtime/runtime.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index bdadbfc17e..6b398c2bfa 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -272,6 +272,7 @@ int32 strcmp(byte*, byte*); int32 findnull(byte*); void dump(byte*, int32); int32 runetochar(byte*, int32); +int32 charntorune(int32*, uint8*, int32); /* * very low level c-called |
