mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
strings: revise ToUpperSpecial and ToLowerSpecial wording
Fixes #26654
Change-Id: I4832c45cad40607b83e1a8a9b562fa12e639b7d9
GitHub-Last-Rev: c9ceedb7d4
GitHub-Pull-Request: golang/go#26781
Reviewed-on: https://go-review.googlesource.com/127716
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
15c362a260
commit
8272484840
1 changed files with 2 additions and 2 deletions
|
|
@ -616,13 +616,13 @@ func ToLower(s string) string {
|
|||
func ToTitle(s string) string { return Map(unicode.ToTitle, s) }
|
||||
|
||||
// ToUpperSpecial returns a copy of the string s with all Unicode letters mapped to their
|
||||
// upper case, giving priority to the special casing rules.
|
||||
// upper case using the case mapping specified by c.
|
||||
func ToUpperSpecial(c unicode.SpecialCase, s string) string {
|
||||
return Map(func(r rune) rune { return c.ToUpper(r) }, s)
|
||||
}
|
||||
|
||||
// ToLowerSpecial returns a copy of the string s with all Unicode letters mapped to their
|
||||
// lower case, giving priority to the special casing rules.
|
||||
// lower case using the case mapping specified by c.
|
||||
func ToLowerSpecial(c unicode.SpecialCase, s string) string {
|
||||
return Map(func(r rune) rune { return c.ToLower(r) }, s)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue