func unicode/utf8.EncodeRune
25 uses
unicode/utf8 (current package)
utf8.go#L342: func EncodeRune(p []byte, r rune) int {
bufio
bufio.go#L694: size = utf8.EncodeRune(b.buf[b.n:], r)
bytes
buffer.go#L287: n = utf8.EncodeRune(b.buf[m:m+utf8.UTFMax], r)
bytes.go#L172: n := utf8.EncodeRune(b[:], r)
bytes.go#L576: nbytes += utf8.EncodeRune(b[nbytes:maxbytes], r)
encoding/json
decode.go#L1272: w += utf8.EncodeRune(b[w:], dec)
decode.go#L1278: w += utf8.EncodeRune(b[w:], rr)
decode.go#L1295: w += utf8.EncodeRune(b[w:], rr)
fmt
format.go#L159: utf8.EncodeRune(buf[i:], rune(u))
format.go#L469: w := utf8.EncodeRune(buf[:utf8.UTFMax], r)
print.go#L100: w := utf8.EncodeRune(b[n:n+utf8.UTFMax], r)
html
escape.go#L120: return dst + utf8.EncodeRune(b[dst:], x), src + i
escape.go#L145: return dst + utf8.EncodeRune(b[dst:], x), src + i
escape.go#L147: dst1 := dst + utf8.EncodeRune(b[dst:], x[0])
escape.go#L148: return dst1 + utf8.EncodeRune(b[dst1:], x[1]), src + i
escape.go#L156: return dst + utf8.EncodeRune(b[dst:], x), src + j + 1
strconv
quote.go#L77: n := utf8.EncodeRune(runeTmp[:], r)
quote.go#L428: n := utf8.EncodeRune(runeTmp[:], c)
strings
builder.go#L114: n := utf8.EncodeRune(b.buf[l:l+utf8.UTFMax], r)
vendor/golang.org/x/text/unicode/bidi
prop.go#L63: n := utf8.EncodeRune(buf[:], r)
vendor/golang.org/x/text/unicode/norm
composition.go#L280: sz := utf8.EncodeRune(rb.byte[bn:], rune(r))
composition.go#L289: sz := utf8.EncodeRune(rb.byte[bn:], rune(r))
composition.go#L399: utf8.EncodeRune(buf, jamoLBase+r/jamoVCount)
composition.go#L400: utf8.EncodeRune(buf[JamoUTF8Len:], jamoVBase+r%jamoVCount)
composition.go#L402: utf8.EncodeRune(buf[2*JamoUTF8Len:], jamoTBase+x)