summaryrefslogtreecommitdiff
path: root/src/pkg/fmt/scan.go
AgeCommit message (Collapse)AuthorFilesLines
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-2/+2
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-40/+57
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý1-88/+127
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-37/+84
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-16/+5
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-41/+97
2010-06-24fmt.Scan: fix handling of EOFs.Rob Pike1-2/+11
Fixes issue 876. R=rsc CC=golang-dev http://codereview.appspot.com/1675048
2010-06-21reflect: add Type.Bits method, add tags to prohibit conversionsRuss Cox1-10/+13
gob: substitute slice for map R=r CC=golang-dev http://codereview.appspot.com/1699045
2010-06-20reflect: add Kind, remove Int8Type, Int8Value, etc.Russ Cox1-69/+21
update other code to match. R=r CC=golang-dev http://codereview.appspot.com/1680044
2010-06-18fmt.Scanf: improve error message when input does not match formatRob Pike1-4/+6
R=rsc CC=golang-dev http://codereview.appspot.com/1693043 Committer: Rob Pike <r@golang.org>
2010-06-15fmt.Scan: fix %c in the case where the input does not implement ReadRune itself.Rob Pike1-15/+38
While we're at it, clean up and test the code to guarantee we see every byte when the text is erroneous UTF-8. Fixes issue 866. R=rsc CC=golang-dev http://codereview.appspot.com/1712042
2010-06-03fmt.Scan: %cRob Pike1-1/+16
R=rsc CC=golang-dev http://codereview.appspot.com/1518042
2010-06-03fmt.Scan: field widthsRob Pike1-76/+168
Also fix an interface bug: white-space-delimited doesn't work well for cases like "%d, %d" on "23, 23") R=rsc CC=golang-dev http://codereview.appspot.com/1502041
2010-06-02fmt.Scan: scan []byte argumentsRob Pike1-6/+22
R=rsc CC=golang-dev http://codereview.appspot.com/1486041
2010-06-02fmt.Scanf: implement formats, provide Sscanf (strings)Rob Pike1-40/+105
- provide convenience functions for scanning strings - enable Scanf etc. - update doc comments R=rsc CC=golang-dev http://codereview.appspot.com/1451044
2010-06-01fmt.Scan: renamings, strings, errorsRob Pike1-1/+1
- implement scanning for all renamed types (compiler bug stops complex from being renamable, so it can't be tested but the code is there) - %q %x for strings - error handling now done with panic/recover R=rsc CC=golang-dev http://codereview.appspot.com/1458041
2010-06-01fmt.Scan: renamings, strings, errorsRob Pike1-149/+329
- implement scanning for all renamed types (compiler bug stops complex from being renamable, so it can't be tested but the code is there) - %q %x for strings - error handling now done with panic/recover R=rsc CC=golang-dev http://codereview.appspot.com/1458041
2010-05-31fmt.Scan: refactor the implementation so format-driven and normal scanning ↵Rob Pike1-157/+97
use the same function. simplifies the code significantly. Still TODO: - proper format handling - strings R=rsc CC=golang-dev http://codereview.appspot.com/1432041
2010-05-31fmt.Scan:Rob Pike1-136/+304
- reimplement integer scanning to handle renamed basic integer types - start implementation of Fscanf and Scanf; not yet ready for general use. This intermediate CL is a useful checkpoint. A similar change needs to be done for float and complex, but it seemed worth getting the approach reviewed before making those changes. R=rsc CC=golang-dev http://codereview.appspot.com/1418041
2010-05-28fmt.Scan: add Fscan and Fscanln and make Scan and ScanlnRob Pike1-4/+24
read from standard input. Add description of scanning to the package comment. R=rsc CC=golang-dev http://codereview.appspot.com/1390041
2010-05-27changes &x -> x[0:] for array to slice conversionRuss Cox1-1/+1
R=gri CC=golang-dev http://codereview.appspot.com/1326042
2010-05-26fmt.Scan: custom formattersRob Pike1-11/+11
R=rsc CC=golang-dev http://codereview.appspot.com/1315042
2010-05-26fmt.Scan: custom formattersRob Pike1-16/+54
R=rsc CC=golang-dev http://codereview.appspot.com/1315042
2010-05-25fmt.Scan, fmt.Scanln: Start of a simple scanning API in the fmt package.Rob Pike1-0/+413
Still to do: - composite types - user-defined scanners - format-driven scanning The package comment will be updated when more of the functionality is in place. R=rsc CC=golang-dev http://codereview.appspot.com/1252045