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

Method SetSeq2

texteditor/difflib/difflib.go:136–145  ·  view source on GitHub ↗

SetSeq2 sets the second sequence to be compared. The first sequence to be compared is not changed.

(b []string)

Source from the content-addressed store, hash-verified

134// SetSeq2 sets the second sequence to be compared. The first sequence to be compared is
135// not changed.
136func (m *SequenceMatcher) SetSeq2(b []string) {
137 if &b == &m.b {
138 return
139 }
140 m.b = b
141 m.matchingBlocks = nil
142 m.opCodes = nil
143 m.fullBCount = nil
144 m.chainB()
145}
146
147func (m *SequenceMatcher) chainB() {
148 // Populate line -> index mapping

Callers 2

SetSeqsMethod · 0.95
FancyReplaceMethod · 0.45

Calls 1

chainBMethod · 0.95

Tested by

no test coverage detected