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

Function NewMatcher

texteditor/difflib/bytes/bytes.go:186–190  ·  view source on GitHub ↗
(a, b [][]byte)

Source from the content-addressed store, hash-verified

184}
185
186func NewMatcher(a, b [][]byte) *SequenceMatcher {
187 m := SequenceMatcher{autoJunk: true}
188 m.SetSeqs(a, b)
189 return &m
190}
191
192func NewMatcherWithJunk(a, b [][]byte, autoJunk bool,
193 isJunk func([]byte) bool) *SequenceMatcher {

Callers 10

TestSequenceMatcherRatioFunction · 0.70
TestGetOptCodesFunction · 0.70
TestGroupedOpCodesFunction · 0.70
TestWithAsciiOneInsertFunction · 0.70
TestWithAsciiOnDeleteFunction · 0.70
BenchmarkMatcherFunction · 0.70
WriteUnifiedDiffFunction · 0.70
WriteContextDiffFunction · 0.70

Calls 1

SetSeqsMethod · 0.95

Tested by 8

TestSequenceMatcherRatioFunction · 0.56
TestGetOptCodesFunction · 0.56
TestGroupedOpCodesFunction · 0.56
TestWithAsciiOneInsertFunction · 0.56
TestWithAsciiOnDeleteFunction · 0.56
BenchmarkMatcherFunction · 0.56