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

Function indexesToString

diffmatchpatch/index.go:22–32  ·  view source on GitHub ↗
(indexes []index)

Source from the content-addressed store, hash-verified

20}
21
22func indexesToString(indexes []index) string {
23 runes := make([]rune, len(indexes))
24 for i, index := range indexes {
25 if index < runeSkipStart {
26 runes[i] = rune(index)
27 } else {
28 runes[i] = rune(index + (runeSkipEnd - runeSkipStart))
29 }
30 }
31 return string(runes)
32}

Callers 3

TestDiffLinesToCharsFunction · 0.85
TestDiffCharsToLinesFunction · 0.85
TestIndexConversionFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestDiffLinesToCharsFunction · 0.68
TestDiffCharsToLinesFunction · 0.68
TestIndexConversionFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…