go/src/strings
Martin Möhrmann 8c62fc0ca3 strings: fix encoding of \u0080 in map
Fix encoding of PAD (U+0080) which has the same value as utf8.RuneSelf
being incorrectly encoded as \x80 in strings.Map due to using <= instead
of a < comparison operator to check one byte encodings for utf8.

Fixes #25242

Change-Id: Ib6c7d1f425a7ba81e431b6d64009e713d94ea3bc
Reviewed-on: https://go-review.googlesource.com/111286
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-04 05:37:45 +00:00
..
builder.go strings: prevent copyCheck from forcing Builder to escape and allocate 2018-01-09 22:01:28 +00:00
builder_test.go strings: fix flaky TestBuilderGrow test 2018-04-03 00:11:46 +00:00
compare.go
compare_test.go
example_test.go strings: add Builder 2017-11-06 18:23:51 +00:00
export_test.go
reader.go all: use SeekStart, SeekCurrent, SeekEnd 2016-05-06 00:10:41 +00:00
reader_test.go strings, bytes: fix Reader 0 byte read at EOF 2016-05-03 21:01:13 +00:00
replace.go strings: clarify Replacer's replacement order 2018-04-26 15:11:58 +00:00
replace_test.go strings: speed up Map 2017-02-24 22:53:05 +00:00
search.go
search_test.go
strings.go strings: fix encoding of \u0080 in map 2018-05-04 05:37:45 +00:00
strings.s
strings_decl.go internal/bytealg: move IndexByte asssembly to the new bytealg package 2018-03-02 22:46:15 +00:00
strings_test.go strings: fix encoding of \u0080 in map 2018-05-04 05:37:45 +00:00