1
0
mirror of https://github.com/golang/go synced 2024-10-04 12:31:21 -06:00
go/src/pkg/strings
Brad Fitzpatrick bba7396fbd strings: implement a faster byte->string Replacer
This implements a replacer for when all old strings are single
bytes, but new values are not.

BenchmarkHTMLEscapeNew   1000000   1090 ns/op
BenchmarkHTMLEscapeOld   1000000   2049 ns/op

R=rsc
CC=golang-dev
https://golang.org/cl/5176043
2011-10-03 15:19:04 -07:00
..
export_test.go strings: implement a faster byte->byte Replacer 2011-10-03 13:12:01 -07:00
Makefile strings: add Replacer, NewReplacer 2011-09-28 09:34:26 -07:00
reader.go go/printer: changed max. number of newlines from 3 to 2 2011-07-14 14:39:40 -07:00
replace_test.go strings: implement a faster byte->string Replacer 2011-10-03 15:19:04 -07:00
replace.go strings: implement a faster byte->string Replacer 2011-10-03 15:19:04 -07:00
strings_test.go strings: add EqualFold 2011-09-26 18:32:51 -04:00
strings.go bytes: add EqualFold 2011-09-26 19:35:32 -04:00