1
0
mirror of https://github.com/golang/go synced 2024-10-04 15:11:20 -06:00
go/src/strings
Keith Randall 0bc14f57ec strings: fix Contains on amd64
The 17-31 byte code is broken.  Disabled it.

Added a bunch of tests to at least cover the cases
in indexShortStr.  I'll channel Brad and wonder why
this CL ever got in without any tests.

Fixes #15679

Change-Id: I84a7b283a74107db865b9586c955dcf5f2d60161
Reviewed-on: https://go-review.googlesource.com/23106
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-05-15 05:21:03 +00:00
..
compare_test.go all: single space after period. 2016-03-02 00:13:47 +00:00
compare.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
example_test.go strings: Add examples for HasPrefix and HasSuffix 2015-10-23 01:57:15 +00:00
export_test.go
reader_test.go strings, bytes: fix Reader 0 byte read at EOF 2016-05-03 21:01:13 +00:00
reader.go all: use SeekStart, SeekCurrent, SeekEnd 2016-05-06 00:10:41 +00:00
replace_test.go
replace.go
search_test.go
search.go
strings_amd64.go strings: fix Contains on amd64 2016-05-15 05:21:03 +00:00
strings_decl.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
strings_generic.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
strings_test.go strings: fix Contains on amd64 2016-05-15 05:21:03 +00:00
strings.go strings: improve explode and correct comment 2016-04-13 04:54:03 +00:00
strings.s