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

Method SetSeq1

texteditor/difflib/difflib.go:125–132  ·  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 []string)

Source from the content-addressed store, hash-verified

123//
124// See also SetSeqs() and SetSeq2().
125func (m *SequenceMatcher) SetSeq1(a []string) {
126 if &a == &m.a {
127 return
128 }
129 m.a = a
130 m.matchingBlocks = nil
131 m.opCodes = nil
132}
133
134// SetSeq2 sets the second sequence to be compared. The first sequence to be compared is
135// not changed.

Callers 2

SetSeqsMethod · 0.95
FancyReplaceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected