go/src/strconv
Russ Cox 11af353531 strconv: add 0b, 0o integer prefixes in ParseInt, ParseUint
This CL modifies ParseInt and ParseUint to recognize
0b and 0o as binary and octal base prefixes when base == 0.

See golang.org/design/19308-number-literals for background.

For #19308.
For #12711.

Change-Id: I8efe067f415aa517bdefbff7e230d3fa1694d530
Reviewed-on: https://go-review.googlesource.com/c/160244
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
2019-02-12 14:48:26 +00:00
..
testdata
atob.go strconv: add missing period to godoc comment 2018-06-09 01:26:25 +00:00
atob_test.go
atof.go strconv: accept underscores in ParseInt, ParseUint, ParseFloat 2019-02-12 14:48:24 +00:00
atof_test.go strconv: accept underscores in ParseInt, ParseUint, ParseFloat 2019-02-12 14:48:24 +00:00
atoi.go strconv: add 0b, 0o integer prefixes in ParseInt, ParseUint 2019-02-12 14:48:26 +00:00
atoi_test.go strconv: add 0b, 0o integer prefixes in ParseInt, ParseUint 2019-02-12 14:48:26 +00:00
decimal.go
decimal_test.go
doc.go strconv: add missing package name into doc.go(godoc overview) 2018-12-30 18:30:11 +00:00
example_test.go strconv: add example for QuoteRuneToGraphic and QuoteToGraphic functions 2018-10-08 19:13:38 +00:00
export_test.go strconv: check bitsize range in ParseInt and ParseUint 2017-08-22 13:37:40 +00:00
extfloat.go all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
fp_test.go
ftoa.go strconv: format hex floats 2019-02-12 14:48:22 +00:00
ftoa_test.go strconv: format hex floats 2019-02-12 14:48:22 +00:00
internal_test.go
isprint.go all: fix non-standard "DO NOT EDIT" comments for generated files 2018-03-10 17:50:11 +00:00
itoa.go strconv: make docs for Itoa and Atoi slightly higher level 2018-12-31 22:48:43 +00:00
itoa_test.go strconv: simplify and optimize Itoa(small) 2018-05-03 18:07:02 +00:00
makeisprint.go all: fix non-standard "DO NOT EDIT" comments for generated files 2018-03-10 17:50:11 +00:00
quote.go strconv: format hex floats 2019-02-12 14:48:22 +00:00
quote_test.go strconv: detect invalid UTF-8 in the Unquote fast path 2018-02-13 18:33:44 +00:00
strconv_test.go