1
0
mirror of https://github.com/golang/go synced 2024-10-04 12:21:26 -06:00
go/src/pkg/strconv
Rob Pike f2f3b8fa99 strconv: change Quote to be Unicode-friendly,
add QuoteToASCII.
The Quote and QuoteRune functions now let printable
runes (as defined by unicode.IsPrint) through.  When
true 7-bit clean stuff is necessary, there are now two
new functions: QuoteToASCII and QuoteRuneToASCII.

Printf("%q") uses Quote. To get the old behavior, it
will now be necessary to say
        Printf("%s", strconv.QuoteToASCII(s))
but that should rarely be necessary.

R=golang-dev, gri, r
CC=golang-dev
https://golang.org/cl/4561061
2011-06-07 12:23:08 +00:00
..
atob_test.go strconv: document and test True and False for Atob 2011-05-12 22:00:50 -07:00
atob.go strconv: document and test True and False for Atob 2011-05-12 22:00:50 -07:00
atof_test.go strconv: add test that trips up other implementations 2011-02-01 12:48:18 -05:00
atof.go src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
atoi_test.go gofmt -s -w src misc 2010-10-22 10:06:33 -07:00
atoi.go strconv: quote erroneous string in errors 2010-11-08 15:08:41 -08:00
decimal_test.go gofmt -s -w src misc 2010-10-22 10:06:33 -07:00
decimal.go pkg: spelling tweaks, I-Z 2011-05-30 18:02:59 +10:00
fp_test.go os: New Open API. 2011-04-04 23:42:14 -07:00
ftoa_test.go gc: correct rounding of denormal constants 2011-02-02 22:36:54 -05:00
ftoa.go strconv/ftoa: avoid a double shift. (shifts by variables are expensive.) 2011-02-11 16:06:04 -08:00
internal_test.go arm: enable all tests 2010-10-25 21:25:13 -07:00
itoa_test.go gofmt -s -w src misc 2010-10-22 10:06:33 -07:00
itoa.go strconv.Uitob64: allow conversion of 64-bit binaries (buffer was too small). 2010-07-01 14:44:21 -07:00
Makefile build: no required environment variables 2010-08-18 10:08:49 -04:00
quote_test.go strconv: change Quote to be Unicode-friendly, 2011-06-07 12:23:08 +00:00
quote.go strconv: change Quote to be Unicode-friendly, 2011-06-07 12:23:08 +00:00
testfp.txt mv src/lib to src/pkg 2009-06-09 09:53:44 -07:00