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

Method SetStringLines

texteditor/text/diffsel.go:132–136  ·  view source on GitHub ↗

SetStringLines sets the data from given lines of strings

(astr, bstr []string)

Source from the content-addressed store, hash-verified

130
131// SetStringLines sets the data from given lines of strings
132func (ds *DiffSelected) SetStringLines(astr, bstr []string) {
133 ds.A.SetStringLines(astr)
134 ds.B.SetStringLines(bstr)
135 ds.Diffs = DiffLines(astr, bstr)
136}
137
138// AtoB applies given diff index from A to B
139func (ds *DiffSelected) AtoB(idx int) {

Callers 2

NewDiffSelectedFunction · 0.95
DiffStringsMethod · 0.45

Calls 1

DiffLinesFunction · 0.85

Tested by

no test coverage detected