MCPcopy Create free account

hub / github.com/pmezard/go-difflib / functions

Functions48 in github.com/pmezard/go-difflib

↓ 40 callersFunctionassertEqual
(t *testing.T, a, b interface{})
difflib/difflib_test.go:18
↓ 23 callersFunctionrep
(s string, count int)
difflib/difflib_test.go:210
↓ 20 callersFunctionsplitChars
(s string)
difflib/difflib_test.go:24
↓ 16 callersFunctionSplitLines
Split a string on "\n" while preserving them. The output can be used as input for UnifiedDiff and ContextDiff structures.
difflib/difflib.go:768
↓ 10 callersFunctionNewMatcher
(a, b []string)
difflib/difflib.go:100
↓ 5 callersFunctionGetContextDiffString
Like WriteContextDiff but returns the diff a string.
difflib/difflib.go:760
↓ 5 callersMethodGetOpCodes
Return list of 5-tuples describing how to turn a into b. Each tuple is of the form (tag, i1, i2, j1, j2). The first tuple has i1 == j1 == 0, and rem
difflib/difflib.go:373
↓ 5 callersFunctionGetUnifiedDiffString
Like WriteUnifiedDiff but returns the diff a string.
difflib/difflib.go:635
↓ 5 callersMethodRatio
Return a measure of the sequences' similarity (float in [0,1]). Where T is the total number of elements in both sequences, and M is the number of mat
difflib/difflib.go:465
↓ 5 callersFunctionmin
(a, b int)
difflib/difflib.go:26
↓ 4 callersMethodGetGroupedOpCodes
Isolate change clusters by eliminating ranges with no changes. Return a generator of groups with up to n lines of context. Each group is in the same
difflib/difflib.go:413
↓ 4 callersMethodisBJunk
(s string)
difflib/difflib.go:192
↓ 4 callersFunctionmax
(a, b int)
difflib/difflib.go:33
↓ 3 callersFunctionNewMatcherWithJunk
(a, b []string, autoJunk bool, isJunk func(string) bool)
difflib/difflib.go:106
↓ 3 callersFunctionassertAlmostEqual
(t *testing.T, a, b float64, places int)
difflib/difflib_test.go:12
↓ 3 callersFunctioncalculateRatio
(matches, length int)
difflib/difflib.go:40
↓ 2 callersMethodGetMatchingBlocks
Return list of triples describing matching subsequences. Each triple is of the form (i, j, n), and means that a[i:i+n] == b[j:j+n]. The triples are
difflib/difflib.go:305
↓ 2 callersMethodQuickRatio
Return an upper bound on ratio() relatively quickly. This isn't defined beyond that it is an upper bound on .Ratio(), and is faster to compute.
difflib/difflib.go:477
↓ 2 callersMethodRealQuickRatio
Return an upper bound on ratio() very quickly. This isn't defined beyond that it is an upper bound on .Ratio(), and is faster to compute than either
difflib/difflib.go:509
↓ 2 callersMethodSetSeqs
Set two sequences to be compared.
difflib/difflib.go:115
↓ 2 callersFunctionbenchmarkSplitLines
(b *testing.B, count int)
difflib/difflib_test.go:409
↓ 2 callersFunctionformatRangeContext
Convert range to the "ed" format.
difflib/difflib.go:642
↓ 2 callersFunctionformatRangeUnified
Convert range to the "ed" format
difflib/difflib.go:515
↓ 1 callersMethodSetSeq1
Set the first sequence to be compared. The second sequence to be compared is not changed. SequenceMatcher computes and caches detailed information ab
difflib/difflib.go:129
↓ 1 callersMethodSetSeq2
Set the second sequence to be compared. The first sequence to be compared is not changed.
difflib/difflib.go:140
↓ 1 callersFunctionWriteContextDiff
Compare two sequences of lines; generate the delta as a context diff. Context diffs are a compact way of showing line changes and a few lines of cont
difflib/difflib.go:674
↓ 1 callersFunctionWriteUnifiedDiff
Compare two sequences of lines; generate the delta as a unified diff. Unified diffs are a compact way of showing line changes and a few lines of cont
difflib/difflib.go:559
↓ 1 callersMethodchainB
()
difflib/difflib.go:151
↓ 1 callersMethodfindLongestMatch
Find longest matching block in a[alo:ahi] and b[blo:bhi]. If IsJunk is not defined: Return (i,j,k) such that a[i:i+k] is equal to b[j:j+k], where al
difflib/difflib.go:221
FunctionBenchmarkSplitLines100
(b *testing.B)
difflib/difflib_test.go:420
FunctionBenchmarkSplitLines10000
(b *testing.B)
difflib/difflib_test.go:424
FunctionExampleGetContextDiffCode
()
difflib/difflib_test.go:138
FunctionExampleGetContextDiffString
()
difflib/difflib_test.go:175
FunctionExampleGetUnifiedDiffCode
()
difflib/difflib_test.go:105
FunctionTestGetOptCodes
(t *testing.T)
difflib/difflib_test.go:40
FunctionTestGroupedOpCodes
(t *testing.T)
difflib/difflib_test.go:61
FunctionTestOmitFilenames
(t *testing.T)
difflib/difflib_test.go:360
FunctionTestOutputFormatNoTrailingTabOnEmptyFiledate
(t *testing.T)
difflib/difflib_test.go:343
FunctionTestOutputFormatRangeFormatContext
(t *testing.T)
difflib/difflib_test.go:295
FunctionTestOutputFormatRangeFormatUnified
(t *testing.T)
difflib/difflib_test.go:278
FunctionTestOutputFormatTabDelimiter
(t *testing.T)
difflib/difflib_test.go:319
FunctionTestSFBugsComparingEmptyLists
(t *testing.T)
difflib/difflib_test.go:265
FunctionTestSFBugsRatioForNullSeqn
(t *testing.T)
difflib/difflib_test.go:258
FunctionTestSequenceMatcherRatio
(t *testing.T)
difflib/difflib_test.go:33
FunctionTestSplitLines
(t *testing.T)
difflib/difflib_test.go:395
FunctionTestWithAsciiBJunk
(t *testing.T)
difflib/difflib_test.go:238
FunctionTestWithAsciiOnDelete
(t *testing.T)
difflib/difflib_test.go:230
FunctionTestWithAsciiOneInsert
(t *testing.T)
difflib/difflib_test.go:214