summaryrefslogtreecommitdiff
path: root/src/pkg/strconv/atoi.go
AgeCommit message (Collapse)AuthorFilesLines
2015-01-15Imported Upstream version 1.4upstream/1.4Tianon Gravi1-198/+0
2014-06-19Imported Upstream version 1.3upstream/1.3Michael Stapelberg1-3/+5
2013-12-03Imported Upstream version 1.2upstream/1.2Michael Stapelberg1-3/+4
2013-03-04Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304Michael Stapelberg1-12/+12
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý1-79/+72
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+202
2011-09-13Imported Upstream version 60Ondřej Surý1-204/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-2/+4
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-1/+1
2010-05-18 Trivial optimization.Kyle Consalus1-6/+7
Cached string indexing in inner loop of Btoui64. Before: strconv_test.BenchmarkAtoi 5000000 309 ns/op strconv_test.BenchmarkAtoiNeg 5000000 325 ns/op strconv_test.BenchmarkAtoi64 5000000 465 ns/op strconv_test.BenchmarkAtoi64Neg 5000000 469 ns/op After: strconv_test.BenchmarkAtoi 10000000 182 ns/op strconv_test.BenchmarkAtoiNeg 10000000 193 ns/op strconv_test.BenchmarkAtoi64 10000000 251 ns/op strconv_test.BenchmarkAtoi64Neg 10000000 258 ns/op R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/1227042 Committer: Robert Griesemer <gri@golang.org>
2009-12-151) Change default gofmt default settings forRobert Griesemer1-53/+53
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 4th set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180049
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox1-3/+3
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-6/+6
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-17/+17
R=rsc, r http://go/go-review/1025029
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer1-6/+2
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-10-11correct a design flaw: Atoi etc should not guess the base.Russ Cox1-34/+43
leave that for Btoi with base == 0. R=r DELTA=146 (101 added, 29 deleted, 16 changed) OCL=35584 CL=35593
2009-10-07apply gofmt to rand reflect regexp rpc runtime sort strconv strings sync ↵Russ Cox1-28/+28
syscall testing time unicode unsafe utf8 R=gri DELTA=1409 (79 added, 24 deleted, 1306 changed) OCL=35415 CL=35437
2009-08-12convert low-level (used by testing) packages toRuss Cox1-7/+5
whole-package compilation. new Makefiles, tests now in separate package bytes flag fmt io math once os reflect strconv sync time utf8 delete import "xxx" in package xxx. inside package xxx, xxx is not declared anymore so s/xxx.//g delete file and package level forward declarations. note the new internal_test.go and sync and strconv to provide public access to internals during testing. the installed version of the package omits that file and thus does not open the internals to all clients. R=r OCL=33065 CL=33097
2009-07-02fix atoi testRuss Cox1-11/+16
R=r DELTA=28 (5 added, 0 deleted, 23 changed) OCL=31093 CL=31093
2009-06-25Change os.Error convention:Russ Cox1-23/+50
echo back context of call in error if likely to be useful. For example, if os.Open("/etc/passwd", os.O_RDONLY) fails with syscall.EPERM, it returns as the os.Error &PathError{ Op: "open", Path: "/etc/passwd" Error: os.EPERM } which formats as open /etc/passwd: permission denied Not converted: datafmt go/... google/... regexp tabwriter template R=r DELTA=1153 (561 added, 156 deleted, 436 changed) OCL=30738 CL=30781
2009-06-09mv src/lib to src/pkgRob Pike1-0/+166
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102