MCPcopy Create free account
hub / github.com/cogentcore/core / fancyHelper

Method fancyHelper

texteditor/difflib/difflib.go:734–747  ·  view source on GitHub ↗
(a []string, alo int, ahi int, b []string, blo int, bhi int)

Source from the content-addressed store, hash-verified

732}
733
734func (d *Differ) fancyHelper(a []string, alo int, ahi int, b []string, blo int, bhi int) (out []string) {
735 if alo < ahi {
736 if blo < bhi {
737 out, _ = d.FancyReplace(a, alo, ahi, b, blo, bhi)
738 } else {
739 out = d.Dump("-", a, alo, ahi)
740 }
741 } else if blo < bhi {
742 out = d.Dump("+", b, blo, bhi)
743 } else {
744 out = []string{}
745 }
746 return out
747}
748
749func (d *Differ) QFormat(aline string, bline string, atags string, btags string) (out []string) {
750 // Format "?" output and deal with leading tabs.

Callers 1

FancyReplaceMethod · 0.95

Calls 2

FancyReplaceMethod · 0.95
DumpMethod · 0.95

Tested by

no test coverage detected