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

Function NewMatcherWithJunk

texteditor/difflib/difflib.go:102–108  ·  view source on GitHub ↗
(a, b []string, autoJunk bool,
	isJunk func(string) bool)

Source from the content-addressed store, hash-verified

100}
101
102func NewMatcherWithJunk(a, b []string, autoJunk bool,
103 isJunk func(string) bool) *SequenceMatcher {
104
105 m := SequenceMatcher{IsJunk: isJunk, autoJunk: autoJunk}
106 m.SetSeqs(a, b)
107 return &m
108}
109
110// SetSeqs sets two sequences to be compared.
111func (m *SequenceMatcher) SetSeqs(a, b []string) {

Callers 6

DiffLinesFunction · 0.92
TestWithAsciiBJunkFunction · 0.70
CompareMethod · 0.70
FancyReplaceMethod · 0.70
WriteUnifiedDiffFunction · 0.70
WriteContextDiffFunction · 0.70

Calls 1

SetSeqsMethod · 0.95

Tested by 1

TestWithAsciiBJunkFunction · 0.56