1
0
mirror of https://github.com/golang/go synced 2024-10-04 16:21:22 -06:00
go/src/pkg/strings
Brad Fitzpatrick 2d6a13997a strings: fix Replacer bug with prefix matches
singleStringReplacer had a bug where if a string was replaced
at the beginning and no output had yet been produced into the
temp buffer before matching ended, an invalid nil check (used
as a proxy for having matched anything) meant it always
returned its input.

Fixes #6659

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/16880043
2013-10-24 15:51:19 -07:00
..
example_test.go bytes, strings: add TrimPrefix and TrimSuffix 2013-02-01 08:41:25 -08:00
export_test.go strings: implement a faster single-string Replacer 2012-09-28 12:34:18 +10:00
reader_test.go bytes, strings: fix Reader WriteTo return value on 0 bytes copied 2012-11-25 09:04:13 -08:00
reader.go bytes, strings: fix Reader WriteTo return value on 0 bytes copied 2012-11-25 09:04:13 -08:00
replace_test.go strings: fix Replacer bug with prefix matches 2013-10-24 15:51:19 -07:00
replace.go strings: fix Replacer bug with prefix matches 2013-10-24 15:51:19 -07:00
search_test.go strings: implement a faster single-string Replacer 2012-09-28 12:34:18 +10:00
search.go strings: implement a faster single-string Replacer 2012-09-28 12:34:18 +10:00
strings_decl.go strings: use runtime assembly for IndexByte 2013-08-05 15:04:05 -07:00
strings_test.go strings: add test for Count 2013-08-09 12:51:21 -07:00
strings.go bytes, strings: use copy in Repeat 2013-08-27 09:21:08 +10:00
strings.s strings: use runtime assembly for IndexByte 2013-08-05 15:04:05 -07:00