]> Cypherpunks repositories - gostls13.git/commit
fmt: Added SkipSpace() function to fmt's ScanState interface.
authorMichael T. Jones <mtj@google.com>
Sat, 25 Jun 2011 00:26:45 +0000 (17:26 -0700)
committerRobert Griesemer <gri@golang.org>
Sat, 25 Jun 2011 00:26:45 +0000 (17:26 -0700)
commitd94e350f480fe72692148f07f959286435790704
tree6333bed7148e0285767284534d8b0e06404cdc13
parent5d4eea6a2f50e0a07a4878f97146e1e3355523e3
fmt: Added SkipSpace() function to fmt's ScanState interface.

Users of the Scan() infrastructure that employ ReadRune() rather than
Token() need a way to skip leading spaces and newlines as set by the
the parent, Fscan(), Fscanln, or Fscanf(). As the internal methods and
boolean flags are not exported, this new function was added here and
in the Int and Nat Scan() functions of the big package. (fmt.Rat did
not need change since it uses Token()) Also added Printf style format
code support to int types and tests for same to int_test.go

R=r, r, gri, mtj
CC=golang-dev
https://golang.org/cl/4634074
src/pkg/big/int.go
src/pkg/big/int_test.go
src/pkg/fmt/scan.go