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

Method SetSeq2

texteditor/difflib/bytes/bytes.go:226–235  ·  view source on GitHub ↗

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

(b [][]byte)

Source from the content-addressed store, hash-verified

224// SetSeq2 sets the second sequence to be compared. The first sequence to be compared is
225// not changed.
226func (m *SequenceMatcher) SetSeq2(b [][]byte) {
227 if &b == &m.b {
228 return
229 }
230 m.b = b
231 m.matchingBlocks = nil
232 m.opCodes = nil
233 m.fullBCount = nil
234 m.chainB()
235}
236
237func (m *SequenceMatcher) chainB() {
238 // Populate line -> index mapping

Callers 2

SetSeqsMethod · 0.95
FancyReplaceMethod · 0.45

Calls 1

chainBMethod · 0.95

Tested by

no test coverage detected