MCPcopy Create free account
hub / github.com/sergi/go-diff / runesEqual

Function runesEqual

diffmatchpatch/stringutil.go:73–83  ·  view source on GitHub ↗
(r1, r2 []rune)

Source from the content-addressed store, hash-verified

71}
72
73func runesEqual(r1, r2 []rune) bool {
74 if len(r1) != len(r2) {
75 return false
76 }
77 for i, c := range r1 {
78 if c != r2[i] {
79 return false
80 }
81 }
82 return true
83}
84
85// runesIndex is the equivalent of strings.Index for rune slices.
86func runesIndex(r1, r2 []rune) int {

Callers 2

runesIndexFunction · 0.85
diffMainRunesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected