summaryrefslogtreecommitdiff
path: root/src/pkg/unicode
AgeCommit message (Collapse)AuthorFilesLines
2013-03-04Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304Michael Stapelberg10-309/+1141
2012-06-14Imported Upstream version 1.0.2upstream/1.0.2Ondřej Surý2-5/+5
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý16-3197/+4191
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý11-0/+8762
2011-09-13Imported Upstream version 60Ondřej Surý11-8814/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý4-135/+947
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý10-3909/+5645
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-1/+2
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý5-224/+349
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý6-3681/+3671
2010-07-01strings and bytes.Split: make count of 0 mean 0, not infinite.Rob Pike1-3/+3
Use a count of -1 for infinity. Ditto for Replace. R=rsc CC=golang-dev http://codereview.appspot.com/1704044 Committer: Rob Pike <r@golang.org>
2010-03-30Unicode: fix stupid typo in comment.Rob Pike1-2/+2
R=rsc CC=golang-dev http://codereview.appspot.com/864041
2010-03-30Unicode: provide an ability to supplement the case-mapping tablesRob Pike4-5/+93
in character and string case mapping routines. Add a custom mapper for Turkish and Azeri. A more general solution for deriving the case information from Unicode's SpecialCasing.txt will require more work. Fixes issue 703. R=rsc, rsc1 CC=golang-dev, mdakin http://codereview.appspot.com/824043
2010-03-04gofmt: modified algorithm for alignment of multi-line composite/list entriesRobert Griesemer1-31/+31
- only manual changes are in src/pkg/go/printer/nodes.go - use a heuristic to determine "outliers" such that not entire composites are forced to align with them - improves several places that were not unligned before due too simple heuristic - unalignes some cases that contain "outliers" - gofmt -w src misc Fixes issue 644. R=rsc, r CC=golang-dev http://codereview.appspot.com/241041
2010-03-02gofmt: experiment: align values in map composites where possibleRobert Griesemer1-148/+148
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076
2010-01-07added some missing periodsRobert Griesemer1-4/+4
R=rsc CC=golang-dev http://codereview.appspot.com/181171
2009-12-151) Change default gofmt default settings forRobert Griesemer7-461/+461
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 5th and last set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180050
2009-12-09remove uses of string concatenation from src and misc directoryRobert Griesemer1-11/+11
R=rsc http://codereview.appspot.com/172041
2009-12-01update package unicode to Unicode 5.2Rob Pike4-230/+609
R=rsc CC=golang-dev http://codereview.appspot.com/163062
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-2/+2
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox1-1/+1
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer3-22/+22
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 Griesemer6-163/+163
R=rsc, r http://go/go-review/1025029
2009-11-08a nagging inconsistency: capitalization ofRuss Cox1-5/+5
HTML vs Html, URL vs Url, HTTP vs Http, current source is 6:1 in favor of the former, so change instances of the latter. R=r CC=go-dev http://go/go-review/1024026
2009-11-05gofmt'ed more stragglersRobert Griesemer1-11/+11
R=rsc http://go/go-review/1019004
2009-11-04gofmt-ify unicodeRobert Griesemer4-409/+402
R=r http://go/go-review/1018051
2009-11-02use the new routine regexp.MustCompile to clean up some code that uses ↵Rob Pike1-18/+12
global regexps. R=rsc, gri CC=go-dev http://go/go-review/1016025
2009-10-27files that are okay from the last gofmt roundRuss Cox1-3/+4
R=gri http://go/go-review/1015011
2009-10-08more lgtm files from gofmtRuss Cox1-101/+100
R=gri OCL=35485 CL=35488
2009-10-07apply gofmt to rand reflect regexp rpc runtime sort strconv strings sync ↵Russ Cox4-107/+108
syscall testing time unicode unsafe utf8 R=gri DELTA=1409 (79 added, 24 deleted, 1306 changed) OCL=35415 CL=35437
2009-09-15more "declared and not used".Russ Cox4-18/+18
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
2009-09-01make ToUpper, ToLower etc. handle unicode properly.Rob Pike1-1/+1
Change their names too. R=rsc DELTA=206 (123 added, 2 deleted, 81 changed) OCL=34170 CL=34194
2009-08-31test that ASCII optimizations agree with the unicode tablesRob Pike2-0/+40
R=rsc DELTA=40 (40 added, 0 deleted, 0 changed) OCL=34168 CL=34176
2009-08-31IsSpaceRob Pike2-0/+39
R=rsc DELTA=39 (39 added, 0 deleted, 0 changed) OCL=34153 CL=34167
2009-08-31submitter's regret. rename Props to PropertiesRob Pike3-9/+9
R=rsc DELTA=9 (0 added, 0 deleted, 9 changed) OCL=34148 CL=34151
2009-08-31add property tablesRob Pike3-59/+982
R=rsc DELTA=1087 (1001 added, 78 deleted, 8 changed) OCL=34137 CL=34147
2009-08-31rearrange some constants. unicode package now defines MaxRune and ↵Rob Pike4-12/+25
ReplacementChar. utf8 package imports unicode to get those definitions. regenerate dependencies. R=rsc DELTA=41 (19 added, 3 deleted, 19 changed) OCL=34123 CL=34129
2009-08-30further simplification of the case fold calculation.Rob Pike2-30/+17
hard to beat at this point, i think. R=rsc DELTA=38 (8 added, 21 deleted, 9 changed) OCL=34092 CL=34096
2009-08-30add the Upper/Lower sequence optimization.Rob Pike4-1018/+171
tables shrink 900 lines. mapping code gets a little slower R=rsc DELTA=1124 (105 added, 952 deleted, 67 changed) OCL=34079 CL=34089
2009-08-28first cut at case mapping tables and library.Rob Pike5-35/+1646
next cut will do the optimization for alternating sequences. R=rsc DELTA=1658 (1620 added, 9 deleted, 29 changed) OCL=34072 CL=34075
2009-08-28fix ", First" ", Last" ranges from UnicodeData.txtRob Pike2-16/+52
R=rsc DELTA=54 (38 added, 2 deleted, 14 changed) OCL=34032 CL=34040
2009-08-27improve generated code for godocabilityRob Pike3-290/+179
R=rsc DELTA=459 (168 added, 279 deleted, 12 changed) OCL=34005 CL=34007
2009-08-27add scripts tables to the unicode packageRob Pike3-57/+1478
R=rsc DELTA=1479 (1422 added, 1 deleted, 56 changed) OCL=33993 CL=33997
2009-08-27remove Line in bufio.ReadLine(Bytes|Slice|String)Russ Cox1-1/+1
also drop bool arg from ReadString R=r DELTA=45 (13 added, 1 deleted, 31 changed) OCL=33923 CL=33960
2009-08-27fix build. changing var to const, which it should be anyway,Rob Pike2-4/+4
implicitly works around 6g bug. R=rsc OCL=33953 CL=33953
2009-08-27unicode tables for all categoriesRob Pike6-1105/+2086
maketables now has a --test option to verify the data. R=rsc DELTA=3087 (1982 added, 1001 deleted, 104 changed) OCL=33947 CL=33950
2009-08-26change IsDecimalDigit to IsDigit because Decimal is redundantRob Pike7-28/+43
R=rsc DELTA=792 (398 added, 383 deleted, 11 changed) OCL=33919 CL=33921
2009-08-26generate the unicode tables directly from web databaseRob Pike7-569/+1018
after this CL, two more to come: 1) add an exhaustive test, probably as a variant of maketables 2) add ToUpper, ToLower, ToTitle and associated tests R=rsc DELTA=1578 (1007 added, 559 deleted, 12 changed) OCL=33902 CL=33907
2009-08-12convert non-low-level non-google pkg codeRuss Cox4-71/+7
to whole-package compilation. R=r OCL=33070 CL=33101
2009-06-24style police: parens in if, for, switch, rangeRuss Cox2-8/+8
R=r DELTA=32 (0 added, 3 deleted, 29 changed) OCL=30718 CL=30725