go/src/strconv
Russ Cox 4d8db00641 all: use bytes.Cut, strings.Cut
Many uses of Index/IndexByte/IndexRune/Split/SplitN
can be written more clearly using the new Cut functions.
Do that. Also rewrite to other functions if that's clearer.

For #46336.

Change-Id: I68d024716ace41a57a8bf74455c62279bde0f448
Reviewed-on: https://go-review.googlesource.com/c/go/+/351711
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2021-10-06 15:53:04 +00:00
..
testdata
atob.go
atob_test.go
atoc.go
atoc_test.go
atof.go strconv: ParseFloat: always return ErrSyntax for bad syntax 2021-06-07 21:12:46 +00:00
atof_test.go strconv: ParseFloat: always return ErrSyntax for bad syntax 2021-06-07 21:12:46 +00:00
atoi.go strconv: document parsing of leading +/- 2021-06-09 18:16:27 +00:00
atoi_test.go strconv: document parsing of leading +/- 2021-06-09 18:16:27 +00:00
bytealg.go strconv: add QuotedPrefix 2021-05-04 00:56:00 +00:00
bytealg_bootstrap.go strconv: add QuotedPrefix 2021-05-04 00:56:00 +00:00
ctoa.go
ctoa_test.go
decimal.go
decimal_test.go
doc.go
eisel_lemire.go
example_test.go
export_test.go
fp_test.go all: use bytes.Cut, strings.Cut 2021-10-06 15:53:04 +00:00
ftoa.go
ftoa_test.go
ftoaryu.go all: fix typos 2021-08-17 13:54:10 +00:00
ftoaryu_test.go
internal_test.go
isprint.go
itoa.go
itoa_test.go
makeisprint.go
quote.go strconv: reject surrogate halves in Unquote 2021-08-21 18:23:58 +00:00
quote_test.go strconv: reject surrogate halves in Unquote 2021-08-21 18:23:58 +00:00
strconv_test.go