func unicode/utf8.RuneCountInString
16 uses
unicode/utf8 (current package)
utf8.go#L411: func RuneCountInString(s string) (n int) {
fmt
format.go#L113: width := f.wid - utf8.RuneCountInString(s)
github.com/go-git/go-git/v5
blame.go#L292: m = max(m, utf8.RuneCountInString(prettyPrintAuthor(fVs[ln])))
github.com/google/go-cmp/cmp
report_text.go#L244: func(r textRecord) int { return utf8.RuneCountInString(r.Key) },
github.com/jmespath/go-jmespath
functions.go#L412: return float64(utf8.RuneCountInString(c)), nil
github.com/sergi/go-diff/diffmatchpatch
diff.go#L1239: insertions += utf8.RuneCountInString(aDiff.Text)
diff.go#L1241: deletions += utf8.RuneCountInString(aDiff.Text)
diff.go#L1267: _, _ = text.WriteString(strconv.Itoa(utf8.RuneCountInString(aDiff.Text)))
diff.go#L1272: _, _ = text.WriteString(strconv.Itoa(utf8.RuneCountInString(aDiff.Text)))
diff.go#L1280: delta = delta[0 : utf8.RuneCountInString(delta)-1]
go/build
read.go#L482: pos.Column += utf8.RuneCountInString(args[:n])
go/doc
comment.go#L484: w := utf8.RuneCountInString(f)
go/printer
nodes.go#L409: size += utf8.RuneCountInString(x.Name)
golang.org/x/mod/modfile
read.go#L34: p.LineRune += utf8.RuneCountInString(s)
strings
strings.go#L20: l := utf8.RuneCountInString(s)
strings.go#L44: return utf8.RuneCountInString(s) + 1
![]() |
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. |