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

Function NewMatcher

texteditor/difflib/difflib.go:96–100  ·  view source on GitHub ↗
(a, b []string)

Source from the content-addressed store, hash-verified

94}
95
96func NewMatcher(a, b []string) *SequenceMatcher {
97 m := SequenceMatcher{autoJunk: true}
98 m.SetSeqs(a, b)
99 return &m
100}
101
102func NewMatcherWithJunk(a, b []string, autoJunk bool,
103 isJunk func(string) 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