1
0
mirror of https://github.com/golang/go synced 2024-10-05 04:21:22 -06:00
go/src/pkg/strconv
Matt Brown 1300fb5449 strconv: use Quote to escape the input string for failed conversion errors
This reveals the presence of control and non-printable characters in the
errors returned by the Parse functions.  Also add unit tests for NumError.

R=golang-dev, r, rsc
CC=golang-dev
https://golang.org/cl/7393075
2013-02-28 10:08:05 -08:00
..
testdata mime, strconv: Make testdata more consistent. 2013-01-22 13:44:35 -08:00
atob_test.go strconv: new API 2011-12-05 15:48:21 -05:00
atob.go strconv: include package and function name in error strings 2011-12-13 10:42:05 -08:00
atof_test.go strconv: use Quote to escape the input string for failed conversion errors 2013-02-28 10:08:05 -08:00
atof.go strconv: extend fast parsing algorithm to ParseFloat(s, 32) 2012-06-13 23:52:00 +02:00
atoi_test.go strconv: use Quote to escape the input string for failed conversion errors 2013-02-28 10:08:05 -08:00
atoi.go strconv: use Quote to escape the input string for failed conversion errors 2013-02-28 10:08:05 -08:00
decimal_test.go strconv: make Ftoa faster 2011-11-15 12:17:25 -05:00
decimal.go strconv: extend Grisu3 algorithm to float32. 2012-07-10 07:44:23 +02:00
extfloat.go strconv: Removed unnecessary use of goto. Made code easier to read. 2012-11-14 09:42:48 -08:00
fp_test.go strconv: use Scanner in fp_test 2013-02-20 13:38:19 -08:00
ftoa_test.go strconv: faster FormatFloat for fixed number of digits. 2012-09-01 16:31:46 +02:00
ftoa.go all: fix typos 2012-12-19 03:04:09 +08:00
internal_test.go strconv: make Ftoa faster 2011-11-15 12:17:25 -05:00
isprint.go strconv: update to unicode 6.2.0 2012-10-31 10:11:04 -07:00
itoa_test.go strconv: make malloc tests more reliable 2012-04-14 21:34:08 +10:00
itoa.go strconv: better documentation for FormatInt, FormatUint. 2012-05-24 16:24:39 -07:00
makeisprint.go strconv: remove dependence on unicode and strings 2012-03-07 13:50:31 +11:00
quote_test.go strconv: remove dependence on unicode and strings 2012-03-07 13:50:31 +11:00
quote.go strconv, fmt: clarify behavior of CanBackquote and "%#q". 2013-02-26 06:33:59 +08:00
strconv_test.go testing: add AllocsPerRun 2013-02-02 22:52:29 -05:00