1
0
mirror of https://github.com/golang/go synced 2024-10-03 06:21:21 -06:00
go/src/pkg/strings
Rob Pike 8c1a627e5c add bytes.IndexByte; common case we can make fast later.
also pick off the special case in strings.Index.   don't want strings.IndexByte
because the call site will very rarely need to allocate and we can handle the
test in the code itself.   bytes.IndexByte can avoid a common allocation.

R=rsc
CC=golang-dev
https://golang.org/cl/156091
2009-11-18 19:23:08 -08:00
..
Makefile fix comment on strings.LastIndex. 2009-10-12 10:09:35 -07:00
reader.go remove semis after statements in one-statement statement lists 2009-11-09 12:07:39 -08:00
strings_test.go add bytes.IndexByte; common case we can make fast later. 2009-11-18 19:23:08 -08:00
strings.go add bytes.IndexByte; common case we can make fast later. 2009-11-18 19:23:08 -08:00