go/src/strconv
zhi.wang 8054d2da5b strconv: use switch for '+'/'-' prefix handling
Follow the approach used in strconv's readFloat, decimal.set, and Atoi,
where leading '+' and '-' are handled using a switch for clarity and
consistency.

Change-Id: I41eff34ce90b5ac43fcdbc0bb88910d6d5fb4d39
GitHub-Last-Rev: 0c9d2efb5a
GitHub-Pull-Request: golang/go#73185
Reviewed-on: https://go-review.googlesource.com/c/go/+/663257
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2025-04-07 13:36:46 -07:00
..
testdata
atob.go
atob_test.go
atoc.go
atoc_test.go
atof.go strconv: use switch for '+'/'-' prefix handling 2025-04-07 13:36:46 -07:00
atof_test.go
atoi.go strconv: use switch for '+'/'-' prefix handling 2025-04-07 13:36:46 -07:00
atoi_test.go
bytealg.go
bytealg_bootstrap.go
ctoa.go
ctoa_test.go
decimal.go
decimal_test.go
doc.go
eisel_lemire.go
example_test.go
export_test.go
fp_test.go
ftoa.go fmt, strconv: document that exponent is always two digits 2024-12-17 07:54:13 -08:00
ftoa_test.go
ftoaryu.go
ftoaryu_test.go
internal_test.go
isprint.go
itoa.go strconv: cleanup old compiler bits.TrailingZeros workaround 2024-11-14 18:20:19 +00:00
itoa_test.go
makeisprint.go
quote.go strconv: adjust comment so that gofmt doesn't mung it 2025-01-27 13:16:45 -08:00
quote_test.go
strconv_test.go