func toUpper0(s *string) { // if len(*s) == 0 { return } *s = string(z.Cap((*s)[0])) + (*s)[1:] }
func cap0(s string) bool { // if s == "" { return false } return s[0] == z.Cap(s[0]) }
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) }