aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/unicode/utf8
AgeCommit message (Collapse)Author
2014-09-08build: move package sources from src/pkg to srcRuss Cox
Preparation was in CL 134570043. This CL contains only the effect of 'hg mv src/pkg/* src'. For more about the move, see golang.org/s/go14nopkg.
2014-07-16src, misc: applied gofmt -s -wRobert Griesemer
Pending CL 113120043. LGTM=dave R=golang-codereviews, dave CC=golang-codereviews https://golang.org/cl/112290043
2014-03-23unicode/utf8: minor code simplificationRui Ueyama
It's a little bit waste to check if r is not a surrogate code point because RuneError is not a surrogate code point. LGTM=iant R=golang-codereviews, iant CC=golang-codereviews https://golang.org/cl/79230043
2013-12-17all: add missing copyrightChaiShushan
R=golang-dev, iant CC=golang-dev https://golang.org/cl/43290043
2013-03-13unicode/utf8: fix insignificant typos in testsJeff R. Allen
Fixes #4972. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7649044
2013-01-09utf8: fix typo.Andrey Mirtchovski
R=golang-dev, iant CC=golang-dev https://golang.org/cl/7063056
2012-09-17unicode/utf8: add ExamplesSanjay Menakuru
R=golang-dev, r CC=adg, golang-dev https://golang.org/cl/6493124
2012-08-30cmd/gc: string conversion for surrogatesRob Pike
This is required by the spec to produce the replacement char. The fix lies in lib9's rune code. R=golang-dev, nigeltao, rsc CC=golang-dev https://golang.org/cl/6443109
2012-08-08all: make Unicode surrogate halves illegal as UTF-8Rob Pike
Surrogate halves are part of UTF-16 and should never appear in UTF-8. (The rune that two combined halves represent in UTF-16 should be encoded directly.) Encoding: encode as RuneError. Decoding: convert to RuneError, consume one byte. This requires changing: package unicode/utf8 runtime for range over string Also added utf8.ValidRune and fixed bug in utf.RuneLen. Fixes #3927. R=golang-dev, rsc, bsiegert CC=golang-dev https://golang.org/cl/6458099
2012-07-19unicode/utf8: reject out-of-range runes.Rob Pike
Surrogates are still admitted, but I have sent mail to golang-dev on that topic. Fixes #3785. R=golang-dev, rogpeppe, iant CC=golang-dev https://golang.org/cl/6398049
2012-03-06unicode/utf16: delete dependence on package unicodeRob Pike
In the test, verify the copied constants are correct. Also put the test into package utf16 rather than utf16_test; the old location was probably due creating the test from utf8, but the separation is not needed here. R=golang-dev, bradfitz, rsc, rsc, r CC=golang-dev https://golang.org/cl/5752047
2012-03-06unicode/utf8: remove dependence on unicode.Rob Pike
The dependency was there only to pull in two constants. Now we define them locally and verify equality in the test. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5754046
2012-02-10unicode/utf8: document return value for decode errorsRob Pike
Also replace archaic definition of rune. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5654048
2012-01-30build: remove Make.pkg, Make.toolRuss Cox
Consequently, remove many package Makefiles, and shorten the few that remain. gomake becomes 'go tool make'. Turn off test phases of run.bash that do not work, flagged with $BROKEN. Future CLs will restore these, but this seemed like a big enough CL already. R=golang-dev, r CC=golang-dev https://golang.org/cl/5601057
2012-01-17utf8.String: move to exp/utf8string.StringRob Pike
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5528115
2011-11-08renaming_3: gofix -r go1pkgrename src/pkg/[m-z]*Rob Pike
R=rsc CC=golang-dev https://golang.org/cl/5345045
2011-11-08renaming_1: hand-edited files for go 1 renamingRob Pike
This contains the files that required handiwork, mostly Makefiles with updated TARGs, plus the two packages with modified package names. html/template/doc.go needs a separate edit pass. test/fixedbugs/bug358.go is not legal go so gofix fails on it. R=rsc CC=golang-dev https://golang.org/cl/5340050
2011-11-03os,text,unicode: renamingsRob Pike
This is Go 1 package renaming CL #4. This one merely moves the source; the import strings will be changed after the next weekly release. This one moves pieces into os, text, and unicode. exec -> os/exec scanner -> text/scanner tabwriter -> text/tabwriter template -> text/template template/parse -> text/template/parse utf16 -> unicode/utf16 utf8 -> unicode/utf8 This should be the last of the source-rearranging CLs. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5331066