1
0
mirror of https://github.com/golang/go synced 2024-11-20 09:34:52 -07:00
go/src/strings
Brad Fitzpatrick 4731c382f6 strings: use fast path for IndexRune
Noticed while reviewing https://golang.org/cl/147690043/

I'd never seen anybody use IndexRune before, and
unsurprisingly it doesn't use the other fast paths in the
strings/bytes packages. IndexByte uses assembly.

Also, less code this way.

LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/147700043
2014-10-06 15:10:51 -07:00
..
example_test.go
export_test.go
reader_test.go
reader.go
replace_test.go
replace.go
search_test.go
search.go
strings_decl.go
strings_test.go
strings.go strings: use fast path for IndexRune 2014-10-06 15:10:51 -07:00
strings.s