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

Method StructuredDump

texteditor/difflib/difflib.go:587–594  ·  view source on GitHub ↗
(tag byte, x []string, low int, high int)

Source from the content-addressed store, hash-verified

585}
586
587func (d *Differ) StructuredDump(tag byte, x []string, low int, high int) (out []DiffLine) {
588 size := high - low
589 out = make([]DiffLine, size)
590 for i := 0; i < size; i++ {
591 out[i] = NewDiffLine(tag, x[i+low])
592 }
593 return out
594}
595
596func (d *Differ) Dump(tag string, x []string, low int, high int) (out []string) {
597 // Generate comparison results for a same-tagged range.

Callers 2

TestDifferStructuredDumpFunction · 0.95
DumpMethod · 0.95

Calls 1

NewDiffLineFunction · 0.70

Tested by 1

TestDifferStructuredDumpFunction · 0.76