func unicode/utf8.RuneCount
8 uses
unicode/utf8 (current package)
utf8.go#L374: func RuneCount(p []byte) int {
bytes
bytes.go#L58: return utf8.RuneCount(s) + 1
bytes.go#L972: t := make([]rune, utf8.RuneCount(s))
fmt
format.go#L95: width := f.wid - utf8.RuneCount(b)
github.com/google/go-cmp/cmp
report_text.go#L251: func(r textRecord) int { return utf8.RuneCount(r.Value.(textLine)) },
google.golang.org/protobuf/internal/encoding/json
decode.go#L231: column = utf8.RuneCount(b) + 1 // ignore multi-rune characters
google.golang.org/protobuf/internal/encoding/text
decode.go#L618: column = utf8.RuneCount(b) + 1 // ignore multi-rune characters
text/tabwriter
tabwriter.go#L420: b.cell.width += utf8.RuneCount(b.buf[b.pos:])
![]() |
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. |