ToUpperSpecial
ToUpperSpecial 使用指定的字符映射,返回将所有字母都转为对应的大写版本的拷贝。
ToUpperSpecial
函数定义
func ToUpperSpecial(c unicode.SpecialCase, s string) string
代码示例
package main
import (
"fmt"
"strings"
"unicode"
)
func main() {
fmt.Println(strings.ToUpperSpecial(unicode.TurkishCase, "örnek iş"))
}
// Output:
// ÖRNEK İŞ