Home | History | Annotate | Download | only in strings

Lines Matching refs:utf8

12 	"unicode/utf8"
19 l := utf8.RuneCountInString(s)
25 ch, size := utf8.DecodeRuneInString(s)
28 if ch == utf8.RuneError {
29 a[i] = string(utf8.RuneError)
81 return utf8.RuneCountInString(s) + 1
148 // If r is utf8.RuneError, it returns the first instance of any
152 case 0 <= r && r < utf8.RuneSelf:
154 case r == utf8.RuneError:
156 if r == utf8.RuneError {
161 case !utf8.ValidRune(r):
209 r, size := utf8.DecodeLastRuneInString(s[:i])
403 if r >= utf8.RuneSelf {
404 wid = utf8.RuneLen(r)
408 maxbytes = maxbytes*2 + utf8.UTFMax
413 nbytes += utf8.EncodeRune(b[nbytes:maxbytes], r)
533 if i >= 0 && s[i] >= utf8.RuneSelf {
534 _, wid := utf8.DecodeRuneInString(s[i:])
568 if r >= utf8.RuneSelf {
569 r, wid = utf8.DecodeRuneInString(s[start:])
584 r, size := utf8.DecodeLastRuneInString(s[0:i])
606 if c >= utf8.RuneSelf {
620 if len(cutset) == 1 && cutset[0] < utf8.RuneSelf {
627 return r < utf8.RuneSelf && as.contains(byte(r))
710 _, wid := utf8.DecodeRuneInString(s[start:])
730 if s[0] < utf8.RuneSelf {
733 r, size := utf8.DecodeRuneInString(s)
736 if t[0] < utf8.RuneSelf {
739 r, size := utf8.DecodeRuneInString(t)
755 if tr < utf8.RuneSelf && 'A' <= sr && sr <= 'Z' {