1
0
mirror of https://github.com/golang/go synced 2024-10-04 19:21:21 -06:00
go/src/pkg
Stephen Ma a627d61d5d Count utf8 runes, not bytes when determining string width. Note
that pad() still counts bytes, but it's currently only used for
1 byte runes.

Fixes #612.

R=r
CC=golang-dev
https://golang.org/cl/217064
2010-02-28 21:15:56 +11:00
..
archive/tar strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
asn1 use []byte("abc") in place of []byte{'a', 'b', 'c'} 2010-02-25 16:43:43 -08:00
big in C and asm, replace pkg·name with ·name 2010-01-25 18:52:55 -08:00
bignum Corrected broken assertion. 2010-02-01 16:14:22 -08:00
bufio strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
bytes strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
compress strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
container finalizers; merge package malloc into package runtime 2010-02-03 16:31:34 -08:00
crypto crypto/blowfish: new package 2010-02-26 15:24:46 -08:00
debug Added mingw specific build stubs. 2010-02-04 13:09:09 -08:00
ebnf strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
encoding strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
exec exec: add dir argument to Run. 2010-02-18 18:32:33 -08:00
exp go/printer, gofmt: align comments in multi-line expression lists 2010-02-25 16:07:55 -08:00
expvar typo 2010-01-22 14:24:17 -08:00
flag 1) Change default gofmt default settings for 2009-12-15 15:27:16 -08:00
fmt Count utf8 runes, not bytes when determining string width. Note 2010-02-28 21:15:56 +11:00
go go/parser cleanup: remove some state by writing more functional code 2010-02-26 14:50:12 -08:00
gob strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
hash hash: document that Sum does not change hash state 2010-01-19 10:50:04 -08:00
http go/printer, gofmt: align comments in multi-line expression lists 2010-02-25 16:07:55 -08:00
image Add named colors (e.g. image.Blue), suitable for exp/draw. 2010-02-04 20:25:37 +11:00
io strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
json json: fix quoted strings in Marshal 2010-02-22 14:32:40 -08:00
log Change type of Printf's args to ... interface{} 2010-02-02 10:53:37 +11:00
math go/printer, gofmt: correct indentation after certain /*-style comments 2010-02-25 13:47:16 -08:00
mime mime: new package, use in http 2010-02-09 20:47:45 -08:00
net strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
netchan first part of networked channels. 2010-01-20 14:12:29 +11:00
once 1) Change default gofmt default settings for 2009-12-15 15:40:16 -08:00
os strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
patch strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
path strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
rand rand: Zipf distributed random variates. 2009-12-15 21:10:37 -08:00
reflect gofmt: don't print ()'s around function-typed results (not needed anymore) 2010-02-24 13:24:37 -08:00
regexp strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
rpc Significant extension to http.Response, which now adheres to the 2010-01-18 21:46:59 -08:00
runtime gc: implement []int(string) and []byte(string) 2010-02-25 15:11:07 -08:00
scanner scanner: match go/scanner and disallow NUL character; 2010-02-22 14:21:59 -08:00
sort sort: fix comment typo 2010-02-02 23:01:21 -08:00
strconv go/printer, gofmt: align comments in multi-line expression lists 2010-02-25 16:07:55 -08:00
strings strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
sync sync: allow to work on armv5 2010-02-18 15:37:16 -08:00
syscall syscall: make signature of Umask on OS X, FreeBSD match Linux. 2010-02-16 11:43:25 -08:00
syslog 1) Change default gofmt default settings for 2009-12-15 15:41:46 -08:00
tabwriter tabwriter: make use of new []byte() conversion 2010-02-25 15:54:12 -08:00
template Fix a couple of bugs referencing data values in template. 2010-02-26 18:39:43 +11:00
testing testing/benchmark: paranoia - make sure n always grows 2010-02-26 17:18:43 -08:00
time time.Ticker: fix bug arising when all tickers are dead. 2010-02-18 09:55:29 +11:00
unicode added some missing periods 2010-01-07 09:27:24 -08:00
unsafe runtime: introduce unsafe.New and unsafe.NewArray 2009-12-07 15:51:58 -08:00
utf8 strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
websocket strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
xgb strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
xml strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
deps.bash deps.bash: handle space between .go and \ in GOFILES= 2010-01-06 17:59:15 -08:00
Makefile crypto/blowfish: new package 2010-02-26 15:24:46 -08:00