示例#1
0
文件: imp.go 项目: CaptainSoOmA/Uni
func toUpper0(s *string) {
	//
	if len(*s) == 0 {
		return
	}
	*s = string(z.Cap((*s)[0])) + (*s)[1:]
}
示例#2
0
文件: imp.go 项目: CaptainSoOmA/Uni
func cap0(s string) bool {
	//
	if s == "" {
		return false
	}
	return s[0] == z.Cap(s[0])
}
示例#3
0
文件: imp.go 项目: CaptainSoOmA/Uni
func toUpper(s *string) {
	//
	n := len(*s)
	b := make([]byte, n)
	for i := 0; i < n; i++ {
		b[i] = z.Cap((*s)[i])
	}
	*s = string(b)
}