8000 Merge branch 'master' of github.com:golang/text · golang/text@d1ff9ab · GitHub
[go: up one dir, main page]

Skip to content

Commit d1ff9ab

Browse files
committed
Merge branch 'master' of github.com:golang/text
2 parents 231ff0f + 38a95c2 commit d1ff9ab

File tree

218 files changed

+63514
-4570
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+63514
-4570
lines changed

AUTHORS

Lines changed: 0 additions & 3 deletions
This file was deleted.

CONTRIBUTORS

Lines changed: 0 additions & 3 deletions
This file was deleted.

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2009 The Go Authors. All rights reserved.
1+
Copyright 2009 The Go Authors.
22

33
Redistribution and use in source and binary forms, with or without
44
modification, are permitted provided that the following conditions are
@@ -10,7 +10,7 @@ notice, this list of conditions and the following disclaimer.
1010
copyright notice, this list of conditions and the following disclaimer
1111
in the documentation and/or other materials provided with the
1212
distribution.
13-
* Neither the name of Google Inc. nor the names of its
13+
* Neither the name of Google LLC nor the names of its
1414
contributors may be used to endorse or promote products derived from
1515
this software without specific prior written permission.
1616

README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,7 @@
44

55
This repository holds supplementary Go libraries for text processing, many involving Unicode.
66

7-
## Semantic Versioning
8-
This repo uses Semantic versioning (http://semver.org/), so
9-
1. MAJOR version when you make incompatible API changes,
10-
1. MINOR version when you add functionality in a backwards-compatible manner,
11-
and
12-
1. PATCH version when you make backwards-compatible bug fixes.
13-
14-
Until version 1.0.0 of x/text is reached, the minor version is considered a
15-
major version. So going from 0.1.0 to 0.2.0 is considered to be a major version
16-
bump.
17-
18-
A major new CLDR version is mapped to a minor version increase in x/text.
19-
Any other new CLDR version is mapped to a patch version increase in x/text.
7+
## CLDR Versioning
208

219
It is important that the Unicode version used in `x/text` matches the one used
2210
by your Go compiler. The `x/text` repository supports multiple versions of

cases/gen.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build ignore
6-
// +build ignore
76

87
// This program generates the trie for casing operations. The Unicode casing
98
// algorithm requires the lookup of various properties and mappings for each
@@ -16,7 +15,6 @@ import (
1615
"bytes"
1716
"fmt"
1817
"io"
19-
"io/ioutil"
2018
"log"
2119
"reflect"
2220
"strconv"
@@ -635,9 +633,9 @@ func genTablesTest() {
635633

636634
// We discard the output as we know we have perfect functions. We run them
637635
// just to verify the properties are correct.
638-
n := printProperties(ioutil.Discard, "DerivedCoreProperties.txt", "Cased", verifyCased)
639-
n += printProperties(ioutil.Discard, "DerivedCoreProperties.txt", "Lowercase", verifyLower)
640-
n += printProperties(ioutil.Discard, "DerivedCoreProperties.txt", "Uppercase", verifyUpper)
636+
n := printProperties(io.Discard, "DerivedCoreProperties.txt", "Cased", verifyCased)
637+
n += printProperties(io.Discard, "DerivedCoreProperties.txt", "Lowercase", verifyLower)
638+
n += printProperties(io.Discard, "DerivedCoreProperties.txt", "Uppercase", verifyUpper)
641639
if n > 0 {
642640
log.Fatalf("One of the discarded properties does not have a perfect filter.")
643641
}

cases/gen_trieval.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build ignore
6-
// +build ignore
76

87
package main
98

cases/icu.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build icu
6-
// +build icu
76

87
package cases
98

cases/icu_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build icu
6-
// +build icu
76

87
package cases
98

cases/tables10.0.0.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cases/tables10.0.0_test.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cases/tables11.0.0.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cases/tables11.0.0_test.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cases/tables12.0.0.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cases/tables12.0.0_test.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cases/tables13.0.0.go

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cases/tables13.0.0_test.go

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
0