1
0
mirror of https://github.com/golang/go synced 2024-11-17 14:54:44 -07:00
go/src/strings
smasher164 7aed6dd7e1 strings, bytes: deprecate Title
Title doesn't handle Unicode punctuation and language-specific
capitalization rules. Replace the BUG comment with a Deprecated
one, suggesting a more robust alternative, and allowing Title
to be exposed to tooling.

Fixes #48367.

Change-Id: I952f1f37cd35b587a95893fb022827bdd9ec7de9
Reviewed-on: https://go-review.googlesource.com/c/go/+/359485
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Cherry Mui <cherryyz@google.com>
2021-11-05 21:27:34 +00:00
..
builder_test.go
builder.go
clone_test.go strings: align Clone output with string([]byte("")) 2021-11-01 14:45:28 +00:00
clone.go strings: align Clone output with string([]byte("")) 2021-11-01 14:45:28 +00:00
compare_test.go
compare.go net/netip: add new IP address package 2021-11-02 01:28:01 +00:00
example_test.go
export_test.go
reader_test.go
reader.go
replace_test.go
replace.go
search_test.go
search.go
strings_test.go
strings.go strings, bytes: deprecate Title 2021-11-05 21:27:34 +00:00