go/src/strings
Andrew Todd fbb819ebc4 strings: clarify usage of Title and ToTitle
This is intended to help clear up confusion around the usage of the
Title and ToTitle functions. It includes a link to define title case
to distinguish it from upper case. It also includes an additional
example for the ToTitle function to showcase the difference in behavior
between it and the Title function.

Fixes #33302

Change-Id: I44e62962fb04d0d22966a39eda3a2d16de7a2291
Reviewed-on: https://go-review.googlesource.com/c/go/+/187825
Reviewed-by: Rob Pike <r@golang.org>
2019-07-30 02:52:57 +00:00
..
builder.go strings: add Builder.Cap 2018-08-20 13:04:52 +00:00
builder_test.go strings: add Builder.Cap 2018-08-20 13:04:52 +00:00
compare.go
compare_test.go strings: lower running time of TestCompareStrings 2018-11-04 18:55:55 +00:00
example_test.go strings: clarify usage of Title and ToTitle 2019-07-30 02:52:57 +00:00
export_test.go strings: select Replacer algorithm and build machine lazily 2018-08-21 02:50:58 +00:00
reader.go bytes, strings: fix Reader.UnreadRune returning without error on a zero Reader 2018-10-29 20:07:25 +00:00
reader_test.go bytes, strings: fix Reader.UnreadRune returning without error on a zero Reader 2018-10-29 20:07:25 +00:00
replace.go strings: document that order of pairs matters in NewReplacer 2019-07-10 21:26:21 +00:00
replace_test.go
search.go all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
search_test.go all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
strings.go strings: clarify usage of Title and ToTitle 2019-07-30 02:52:57 +00:00
strings_test.go strings, bytes: add ToValidUTF8 2019-05-01 18:31:47 +00:00