summaryrefslogtreecommitdiff
path: root/src/lib/strconv
AgeCommit message (Collapse)AuthorFilesLines
2009-06-09mv src/lib to src/pkgRob Pike15-2875/+0
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102
2009-06-06delete unnecessary newlineRuss Cox1-1/+1
R=gri DELTA=1 (0 added, 0 deleted, 1 changed) OCL=29971 CL=29975
2009-06-05rebuilt Makefiles for CL 29923Russ Cox1-14/+6
R=r DELTA=761 (1 added, 433 deleted, 327 changed) OCL=29927 CL=29966
2009-06-04use the new bytes packageRob Pike1-5/+6
R=rsc DELTA=61 (8 added, 31 deleted, 22 changed) OCL=29897 CL=29899
2009-05-11change utf8.FullRuneInString and utf8.DecodeRuneInStringRuss Cox1-79/+79
to use single string argument instead of string, index. R=r DELTA=136 (9 added, 7 deleted, 120 changed) OCL=28642 CL=28644
2009-05-08embeddability: change bufio.BufRead to bufio.Reader etc.Rob Pike1-1/+1
R=rsc DELTA=112 (0 added, 4 deleted, 108 changed) OCL=28537 CL=28543
2009-04-17Step 1 of the Big Error Shift: make os.Error an interface and replace ↵Rob Pike5-16/+16
*os.Errors with os.Errors. lib/template updated to use new setup; its clients also updated. Step 2 will make os's error support internally much cleaner. R=rsc OCL=27586 CL=27586
2009-04-16Convert go tree to hierarchical pkg directory:Russ Cox1-10/+14
import ( "vector" -> "container/vector" "ast" -> "go/ast" "sha1" -> "hash/sha1" etc. ) and update Makefiles. Because I did the conversion semi-automatically, I sorted all the import blocks as a post-processing. Some files have therefore changed that didn't strictly need to. Rename local packages to lower case. The upper/lower distinction doesn't work on OS X and complicates the "single-package directories with the same package name as directory name" heuristic used by gobuild and godoc to create the correlation between source and binary locations. Now that we have a plan to avoid globally unique names, the upper/lower is unnecessary. The renamings will cause trouble for a few users, but so will the change in import paths. This way, the two maintenance fixes are rolled into one inconvenience. R=r OCL=27573 CL=27575
2009-04-16regenerate Makefiles.Russ Cox1-11/+20
fix bug in RPC.go (import "RPC" not "rpc.pb") R=r DELTA=483 (261 added, 64 deleted, 158 changed) OCL=27547 CL=27549
2009-04-13add strconv.UnquoteRuss Cox2-2/+229
R=r DELTA=229 (227 added, 0 deleted, 2 changed) OCL=27200 CL=27366
2009-03-11Rename os.FD to os.File.Russ Cox1-2/+3
Make Fstat, Readdirnames, and Readdir methods on os.File. R=r DELTA=281 (79 added, 3 deleted, 199 changed) OCL=25891 CL=26130
2009-03-07document bufioRob Pike1-1/+2
R=rsc DELTA=61 (27 added, 2 deleted, 32 changed) OCL=25877 CL=25889
2009-03-05strconv: docRuss Cox5-36/+81
R=r DELTA=110 (64 added, 19 deleted, 27 changed) OCL=25761 CL=25782
2009-03-03Automated g4 rollback of changelist 25024,Russ Cox9-381/+380
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
2009-03-02- itobRobert Griesemer2-44/+92
- more test cases R=rsc DELTA=97 (52 added, 4 deleted, 41 changed) OCL=25585 CL=25607
2009-02-16allow hex, octal in Atoi, etc.Russ Cox2-86/+142
R=r DELTA=169 (79 added, 23 deleted, 67 changed) OCL=25079 CL=25083
2009-02-13convert composite literals from { } to ( ).Russ Cox9-348/+348
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
2009-02-03bufio:Russ Cox1-4/+1
* avoid large copies * NewBufRead, NewBufWrite never fail * add BufReadWrite io: * add io.Close http, google/net/rpc: * add, use http.Conn.Hijack R=r DELTA=416 (202 added, 123 deleted, 91 changed) OCL=24153 CL=24238
2009-01-22move math routines from package sys to package math,Russ Cox3-10/+15
though they still build in src/runtime. use cgo instead of hand-written wrappers. R=r DELTA=740 (289 added, 300 deleted, 151 changed) OCL=23326 CL=23331
2009-01-20delete exportRuss Cox12-29/+29
TBR=r OCL=23121 CL=23127
2009-01-16casify, cleanup sysRuss Cox2-4/+4
R=r OCL=22978 CL=22984
2009-01-16s/split/Split/ to get compiling againRob Pike1-3/+3
R=rsc OCL=22967 CL=22967
2009-01-15convert strconvRuss Cox12-527/+518
R=r DELTA=568 (0 added, 9 deleted, 559 changed) OCL=22898 CL=22901
2009-01-15make safe for new package local defaultsRuss Cox7-260/+256
R=r DELTA=462 (9 added, 33 deleted, 420 changed) OCL=22879 CL=22885
2009-01-15printf->Printf etc.Rob Pike1-2/+2
the raw fmt routines will be another, smaller but subtler pass. R=rsc DELTA=157 (0 added, 0 deleted, 157 changed) OCL=22851 CL=22851
2009-01-06new new & makeRuss Cox3-5/+5
R=r OCL=22166 CL=22166
2008-12-19change *map to map; *chan to chan; new(T) to new(*T)Russ Cox2-2/+2
fix bugs left over from *[] to [] conversion. TBR=r OCL=21576 CL=21581
2008-12-18convert *[] to [].Russ Cox3-13/+13
R=r OCL=21563 CL=21571
2008-12-10assorted cleanup and fixesRuss Cox2-0/+4
R=r DELTA=209 (109 added, 79 deleted, 21 changed) OCL=20930 CL=20934
2008-12-03Make strconv.atof("-0") return -0Russ Cox2-7/+9
and update test. R=iant DELTA=11 (3 added, 1 deleted, 7 changed) OCL=20350 CL=20362
2008-12-01be more precise in ftoa_test.Russ Cox1-12/+17
R=ken OCL=20173 CL=20173
2008-12-01add blank line (response to post-submit review of CL 19422)Russ Cox1-0/+1
TBR=r OCL=20127 CL=20127
2008-11-24replay CL 19916 and CL 19913 now that the build can handle themRuss Cox4-2/+167
TBR=r OCL=19924 CL=19934
2008-11-24Automated g4 rollback of changelist 19916.Russ Cox4-167/+2
*** Reason for rollback *** broke build *** Original change description *** utf8: add InString routines for decoding in strings reflect: add InterfaceValue.Get(), remove Empty strconv: add Quote, CanBackquote fmt: * %q go-quoted " string * %#q go-quoted ` string if possible, " string otherwise * %x hexadecimal string * anywhere a string is okay, *[]byte is okay * flags # 0 - + space * print value inside interface, not interface itself * tests TBR=r OCL=19920 CL=19920
2008-11-24utf8: add InString routines for decoding in stringsRuss Cox4-2/+167
reflect: add InterfaceValue.Get(), remove Empty strconv: add Quote, CanBackquote fmt: * %q go-quoted " string * %#q go-quoted ` string if possible, " string otherwise * %x hexadecimal string * anywhere a string is okay, *[]byte is okay * flags # 0 - + space * print value inside interface, not interface itself * tests R=r DELTA=756 (597 added, 121 deleted, 38 changed) OCL=19888 CL=19916
2008-11-23fix %g 20 -> "2e+01" want "20"Russ Cox2-1/+11
R=r DELTA=11 (10 added, 0 deleted, 1 changed) OCL=19885 CL=19887
2008-11-19refine gobuild: the files must be *_test.go not *test.goRob Pike1-1/+1
this causes complications R=rsc DELTA=1724 (849 added, 856 deleted, 19 changed) OCL=19667 CL=19667
2008-11-19change naming convention for tests fromRob Pike7-3/+3
test*.go to *test.go R=rsc DELTA=1747 (864 added, 855 deleted, 28 changed) OCL=19666 CL=19666
2008-11-19a few Errorfs should have been ErrorRob Pike2-6/+6
R=rsc DELTA=6 (0 added, 0 deleted, 6 changed) OCL=19662 CL=19664
2008-11-19add a type testing.T and use it in tests.Rob Pike6-148/+116
update uses of gotest. minor tweak to testing structure for protobuf. R=rsc DELTA=276 (71 added, 75 deleted, 130 changed) OCL=19614 CL=19621
2008-11-19gobuild: add coverage rule, ignore files in package main.Russ Cox1-0/+4
R=r DELTA=55 (41 added, 11 deleted, 3 changed) OCL=19594 CL=19598
2008-11-19essentially 100% coverage of strconv in tests.Russ Cox9-23/+297
fix a few bugs. R=r DELTA=294 (275 added, 9 deleted, 10 changed) OCL=19595 CL=19595
2008-11-19leave 6.out around after gotest;Russ Cox1-1/+1
delete it in make clean. R=r DELTA=10 (0 added, 0 deleted, 10 changed) OCL=19542 CL=19581
2008-11-18more tests for strconv; convert to gotest.Russ Cox3-39/+190
R=r DELTA=219 (186 added, 32 deleted, 1 changed) OCL=19508 CL=19523
2008-11-18return *os.Error instead of bool from strconv.ato*Russ Cox2-50/+100
R=r DELTA=137 (56 added, 4 deleted, 77 changed) OCL=19505 CL=19522
2008-11-18gobuild changes.Russ Cox1-14/+25
* handles multiple packages per directory * scans directory for files if given no arguments * infers package name * includes test rule invoking gotest R=r DELTA=746 (444 added, 150 deleted, 152 changed) OCL=19504 CL=19521
2008-11-18roll tests into one binaryRuss Cox5-118/+122
R=r DELTA=145 (27 added, 27 deleted, 91 changed) OCL=19423 CL=19502
2008-11-17* faster atof for common casesRuss Cox2-14/+214
(gets 3x speedup in go; got 40x in c) * handle and test overflow R=r DELTA=217 (200 added, 0 deleted, 17 changed) OCL=19399 CL=19422
2008-11-17correctly rounded floating-point conversionsRuss Cox11-0/+1654
in new package strconv. move atoi etc to strconv too. update fmt, etc to use strconv. R=r DELTA=2232 (1691 added, 424 deleted, 117 changed) OCL=19286 CL=19380