go/src/strings
Gabriel Aszalos c82ee79247 strings: improve readability of IndexAny and LastIndexAny functions.
This change removes the check of len(chars) > 0 inside the Index and
IndexAny functions which was redundant.

Change-Id: Iffbc0f2b3332c6e31c7514b5f644b6fe7bdcfe0d
Reviewed-on: https://go-review.googlesource.com/65910
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2017-09-25 18:23:11 +00:00
..
compare.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
compare_test.go all: single space after period. 2016-03-02 00:13:47 +00:00
example_test.go strings: add examples for Index functions 2017-08-09 04:43:33 +00:00
export_test.go
reader.go all: use SeekStart, SeekCurrent, SeekEnd 2016-05-06 00:10:41 +00:00
reader_test.go strings, bytes: fix Reader 0 byte read at EOF 2016-05-03 21:01:13 +00:00
replace.go
replace_test.go strings: speed up Map 2017-02-24 22:53:05 +00:00
search.go
search_test.go
strings.go strings: improve readability of IndexAny and LastIndexAny functions. 2017-09-25 18:23:11 +00:00
strings.s
strings_amd64.go internal/cpu: new package to detect cpu features 2017-05-10 17:02:21 +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 strings: optimize Count for amd64 2017-04-07 14:25:13 +00:00
strings_s390x.go strings: optimize Count for amd64 2017-04-07 14:25:13 +00:00
strings_test.go strings: optimize Count for amd64 2017-04-07 14:25:13 +00:00