const unicode/utf8.UTFMax
28 uses
unicode/utf8 (current package)
utf8.go#L19: UTFMax = 4 // maximum number of bytes of a UTF-8 encoded Unicode character.
utf8.go#L266: lim := end - UTFMax
utf8.go#L306: lim := end - UTFMax
bufio
bufio.go#L307: for b.r+utf8.UTFMax > b.w && !utf8.FullRune(b.buf[b.r:b.w]) && b.err == nil && b.w-b.r < len(b.buf) {
bufio.go#L729: if n < utf8.UTFMax {
bufio.go#L734: if n < utf8.UTFMax {
bytes
buffer.go#L306: m, ok := b.tryGrowByReslice(utf8.UTFMax)
buffer.go#L308: m = b.grow(utf8.UTFMax)
bytes.go#L159: var b [utf8.UTFMax]byte
encoding/json
decode.go#L1226: b := make([]byte, len(s)+2*utf8.UTFMax)
decode.go#L1232: if w >= len(b)-2*utf8.UTFMax {
decode.go#L1233: nb := make([]byte, (len(b)+utf8.UTFMax)*2)
encode.go#L1019: if n > utf8.UTFMax {
encode.go#L1020: n = utf8.UTFMax
fmt
format.go#L148: width := 2 + prec + 2 + utf8.UTFMax + 1
scan.go#L306: buf [utf8.UTFMax]byte // used only inside ReadRune
scan.go#L308: pendBuf [utf8.UTFMax]byte // bytes left over
golang.org/x/text/unicode/norm
composition.go#L17: maxByteBufferSize = utf8.UTFMax * maxBufferSize // 128
composition.go#L199: rb.nbyte += utf8.UTFMax
composition.go#L281: rb.nbyte += utf8.UTFMax
normalize.go#L602: var buf [maxBufferSize * utf8.UTFMax]byte
transform.go#L44: if len(rb.out) < rb.nrune*utf8.UTFMax {
strings
strings.go#L553: b.Grow(len(s) + utf8.UTFMax)
vendor/golang.org/x/text/unicode/norm
composition.go#L17: maxByteBufferSize = utf8.UTFMax * maxBufferSize // 128
composition.go#L199: rb.nbyte += utf8.UTFMax
composition.go#L281: rb.nbyte += utf8.UTFMax
normalize.go#L602: var buf [maxBufferSize * utf8.UTFMax]byte
transform.go#L44: if len(rb.out) < rb.nrune*utf8.UTFMax {
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)