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

Function NewMatcherWithJunk

texteditor/difflib/bytes/bytes.go:192–198  ·  view source on GitHub ↗
(a, b [][]byte, autoJunk bool,
	isJunk func([]byte) bool)

Source from the content-addressed store, hash-verified

190}
191
192func NewMatcherWithJunk(a, b [][]byte, autoJunk bool,
193 isJunk func([]byte) bool) *SequenceMatcher {
194
195 m := SequenceMatcher{IsJunk: isJunk, autoJunk: autoJunk}
196 m.SetSeqs(a, b)
197 return &m
198}
199
200// SetSeqs sets two sequences to be compared.
201func (m *SequenceMatcher) SetSeqs(a, b [][]byte) {

Callers 3

TestWithAsciiBJunkFunction · 0.70
CompareMethod · 0.70
FancyReplaceMethod · 0.70

Calls 1

SetSeqsMethod · 0.95

Tested by 1

TestWithAsciiBJunkFunction · 0.56