Descriptionstrconv: 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.
Patch Set 1 #Patch Set 2 : diff -r 23c4961fcea2 https://go.googlecode.com/hg/ #
Total comments: 4
Patch Set 3 : diff -r d9401fa9dc01 https://go.googlecode.com/hg/ #
Total comments: 1
Patch Set 4 : diff -r d9401fa9dc01 https://go.googlecode.com/hg/ #
Total comments: 2
Patch Set 5 : diff -r d9401fa9dc01 https://go.googlecode.com/hg/ #Patch Set 6 : diff -r 0c27d11e3efd https://go.googlecode.com/hg/ #
MessagesTotal messages: 14
|