]> Cypherpunks repositories - gostls13.git/commit
strings: add Title
authorRob Pike <r@golang.org>
Tue, 20 Jul 2010 07:03:59 +0000 (00:03 -0700)
committerRob Pike <r@golang.org>
Tue, 20 Jul 2010 07:03:59 +0000 (00:03 -0700)
commit8684a089896bffb5ed0818bc39d7ab7c2cf0e2fe
treeaa1654f60f685a83842b0efb7e26008d4b9e1a6e
parentf6b93ab432dd43d030ecfc7240e8282a7d7e409a
strings: add Title
strings.ToTitle converts all characters to title case, which for consistency with the
other To* functions it should continue to do.  This CL adds string.Title, which
does a proper title-casing of the string.
A similar function for package bytes will follow once this is settled.
Fixes #933.

R=rsc
CC=golang-dev
https://golang.org/cl/1869042
src/pkg/strings/strings.go
src/pkg/strings/strings_test.go