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

Method fancyHelper

texteditor/difflib/bytes/bytes.go:801–814  ·  view source on GitHub ↗
(a [][]byte, alo int, ahi int, b [][]byte, blo int, bhi int)

Source from the content-addressed store, hash-verified

799}
800
801func (d *Differ) fancyHelper(a [][]byte, alo int, ahi int, b [][]byte, blo int, bhi int) (out [][]byte) {
802 if alo < ahi {
803 if blo < bhi {
804 out, _ = d.FancyReplace(a, alo, ahi, b, blo, bhi)
805 } else {
806 out = d.Dump(MINUS, a, alo, ahi)
807 }
808 } else if blo < bhi {
809 out = d.Dump(PLUS, b, blo, bhi)
810 } else {
811 out = [][]byte{}
812 }
813 return out
814}
815
816func (d *Differ) QFormat(aline []byte, bline []byte, atags []byte, btags []byte) (out [][]byte) {
817 // 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