]> Cypherpunks repositories - gostls13.git/commit
fmt: add %U format for standard Unicode representation of integer values.
authorRob Pike <r@golang.org>
Mon, 6 Dec 2010 19:23:37 +0000 (14:23 -0500)
committerRob Pike <r@golang.org>
Mon, 6 Dec 2010 19:23:37 +0000 (14:23 -0500)
commit730e39cd134ba13d1df4a5c0645d6a083fb540bc
tree7a66f079dbeb9533fe50ae284cbe99ea5e6e6f8e
parente2d1595c819ea6baeec42bae2107c141eb935b9e
fmt: add %U format for standard Unicode representation of integer values.
fmt.Printf("%U", 1) yields "U+0001"
It's essentially "U+%.4x" but lets you override the precision works in scan, too.

R=rsc
CC=golang-dev
https://golang.org/cl/3423043
src/pkg/fmt/doc.go
src/pkg/fmt/fmt_test.go
src/pkg/fmt/format.go
src/pkg/fmt/print.go
src/pkg/fmt/scan.go
src/pkg/fmt/scan_test.go