func unicode/utf8.EncodeRune

47 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)

	github.com/evanw/esbuild/internal/js_printer
		js_printer.go#L428: 						width := utf8.EncodeRune(temp, r)
		js_printer.go#L447: 				width := utf8.EncodeRune(temp, rune(c))
		js_printer.go#L809: 		width := utf8.EncodeRune(temp, c)

	github.com/google/licensecheck/internal/match
		dict.go#L285: 	utf8.EncodeRune(buf[n:], r)

	github.com/yuin/goldmark/util
		util.go#L462: 			l := utf8.EncodeRune(rbuf, f)
		util.go#L608: 							runeSize := utf8.EncodeRune(buf, ToValidRune(rune(v)))
		util.go#L620: 							runeSize := utf8.EncodeRune(buf, ToValidRune(rune(v)))

	golang.org/x/net/html
		escape.go#L119: 		return dst + utf8.EncodeRune(b[dst:], x), src + i
		escape.go#L144: 		return dst + utf8.EncodeRune(b[dst:], x), src + i
		escape.go#L146: 		dst1 := dst + utf8.EncodeRune(b[dst:], x[0])
		escape.go#L147: 		return dst1 + utf8.EncodeRune(b[dst1:], x[1]), src + i
		escape.go#L155: 				return dst + utf8.EncodeRune(b[dst:], x), src + j + 1

	golang.org/x/text/runes
		runes.go#L260: 		n := utf8.EncodeRune(b[:], replacement)

	golang.org/x/text/secure/precis
		class.go#L27: 	n := utf8.EncodeRune(b, r)

	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)

	golang.org/x/text/width
		width.go#L89: 	n := utf8.EncodeRune(buf[:], 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

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

	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)