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

Method SetSeq1

texteditor/difflib/bytes/bytes.go:215–222  ·  view source on GitHub ↗

SetSeq1 sets the first sequence to be compared. The second sequence to be compared is not changed. SequenceMatcher computes and caches detailed information about the second sequence, so if you want to compare one sequence S against many sequences, use .SetSeq2(s) once and call .SetSeq1(x) repeatedl

(a [][]byte)

Source from the content-addressed store, hash-verified

213//
214// See also SetSeqs() and SetSeq2().
215func (m *SequenceMatcher) SetSeq1(a [][]byte) {
216 if &a == &m.a {
217 return
218 }
219 m.a = a
220 m.matchingBlocks = nil
221 m.opCodes = nil
222}
223
224// SetSeq2 sets the second sequence to be compared. The first sequence to be compared is
225// not changed.

Callers 2

SetSeqsMethod · 0.95
FancyReplaceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected