1
0
mirror of https://github.com/golang/go synced 2024-11-20 05:44:44 -07:00
go/src/pkg/bytes
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
..
buffer_test.go - replaced gofmt expression formatting algorithm with 2009-11-09 21:09:34 -08:00
buffer.go remove bytes.Copy 2009-11-18 15:24:24 -08:00
bytes_test.go add bytes.IndexByte; common case we can make fast later. 2009-11-18 19:23:08 -08:00
bytes.go add bytes.IndexByte; common case we can make fast later. 2009-11-18 19:23:08 -08:00
Makefile convert low-level (used by testing) packages to 2009-08-12 13:18:37 -07:00