1
0
mirror of https://github.com/golang/go synced 2024-11-17 18:14:46 -07:00
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_test.go
atob.go
atoc_test.go
atoc.go
atof_test.go
atof.go
atoi_test.go
atoi.go
bytealg_bootstrap.go
bytealg.go
ctoa_test.go
ctoa.go
decimal_test.go
decimal.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_test.go
ftoa.go
ftoaryu_test.go
ftoaryu.go
internal_test.go
isprint.go
itoa_test.go
itoa.go
makeisprint.go
quote_test.go
quote.go
strconv_test.go