const unicode/utf8.UTFMax
41 uses
unicode/utf8 (current package)
utf8.go#L19: UTFMax = 4 // maximum number of bytes of a UTF-8 encoded Unicode character.
utf8.go#L260: lim := end - UTFMax
utf8.go#L300: lim := end - UTFMax
bufio
bufio.go#L287: 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#L684: if n < utf8.UTFMax {
bufio.go#L689: if n < utf8.UTFMax {
bytes
buffer.go#L283: m, ok := b.tryGrowByReslice(utf8.UTFMax)
buffer.go#L285: m = b.grow(utf8.UTFMax)
buffer.go#L287: n = utf8.EncodeRune(b.buf[m:m+utf8.UTFMax], r)
bytes.go#L171: var b [utf8.UTFMax]byte
bytes.go#L571: maxbytes = maxbytes*2 + utf8.UTFMax
encoding/json
decode.go#L1216: b := make([]byte, len(s)+2*utf8.UTFMax)
decode.go#L1222: if w >= len(b)-2*utf8.UTFMax {
decode.go#L1223: nb := make([]byte, (len(b)+utf8.UTFMax)*2)
fmt
format.go#L145: width := 2 + prec + 2 + utf8.UTFMax + 1
format.go#L469: w := utf8.EncodeRune(buf[:utf8.UTFMax], r)
print.go#L97: for n+utf8.UTFMax > cap(b) {
print.go#L100: w := utf8.EncodeRune(b[n:n+utf8.UTFMax], r)
scan.go#L306: buf [utf8.UTFMax]byte // used only inside ReadRune
scan.go#L308: pendBuf [utf8.UTFMax]byte // bytes left over
github.com/evanw/esbuild/internal/js_lexer
js_lexer.go#L2642: temp := make([]byte, utf8.UTFMax)
js_lexer.go#L2664: temp := [utf8.UTFMax]byte{}
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L315: temp := make([]byte, utf8.UTFMax)
js_printer.go#L785: temp := make([]byte, utf8.UTFMax)
golang.org/x/text/runes
runes.go#L213: var b [utf8.UTFMax]byte
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#L601: var buf [maxBufferSize * utf8.UTFMax]byte
transform.go#L44: if len(rb.out) < rb.nrune*utf8.UTFMax {
strconv
quote.go#L65: var runeTmp [utf8.UTFMax]byte
quote.go#L417: var runeTmp [utf8.UTFMax]byte
strings
builder.go#L111: if cap(b.buf)-l < utf8.UTFMax {
builder.go#L112: b.grow(utf8.UTFMax)
builder.go#L114: n := utf8.EncodeRune(b.buf[l:l+utf8.UTFMax], r)
strings.go#L481: 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#L601: var buf [maxBufferSize * utf8.UTFMax]byte
transform.go#L44: if len(rb.out) < rb.nrune*utf8.UTFMax {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |