func unicode/utf8.EncodeRune

35 uses

	unicode/utf8 (current package)
		utf8.go#L342: func EncodeRune(p []byte, r rune) int {

	bufio
		bufio.go#L724: 	size = utf8.EncodeRune(b.buf[b.n:], r)

	bytes
		buffer.go#L288: 	n = utf8.EncodeRune(b.buf[m:m+utf8.UTFMax], r)
		bytes.go#L172: 		n := utf8.EncodeRune(b[:], r)
		bytes.go#L580: 			nbytes += utf8.EncodeRune(b[nbytes:maxbytes], r)

	encoding/json
		decode.go#L1283: 						w += utf8.EncodeRune(b[w:], dec)
		decode.go#L1289: 				w += utf8.EncodeRune(b[w:], rr)
		decode.go#L1306: 			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)

	github.com/go-pg/pg/v10/types
		append.go#L165: 	n := utf8.EncodeRune(b[l:l+utf8.UTFMax], r)

	github.com/vmihailenco/bufpool
		buffer.go#L224: 	n = utf8.EncodeRune(b.buf[m:m+utf8.UTFMax], r)

	go/types
		typestring.go#L477: 		utf8.EncodeRune(buf[i:], '₀'+rune(x%10)) // '₀' == U+2080

	golang.org/x/text/unicode/bidi
		prop.go#L63: 	n := utf8.EncodeRune(buf[:], r)

	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)

	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

	html/template
		css.go#L89: 			n := utf8.EncodeRune(b[len(b):cap(b)], r)

	strconv
		quote.go#L81: 		n := utf8.EncodeRune(runeTmp[:], r)
		quote.go#L469: 					n := utf8.EncodeRune(arr[:], r)

	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)