Click or drag to resize

DiffMatchPatchDiffBisect Method

Find the 'middle snake' of a diff, split the problem in two and return the recursively constructed diff.

See Myers 1986 paper: An O(ND) Difference Algorithm and Its Variations.


Namespace: GSF.Text
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntax
protected List<Diff> DiffBisect(
	string text1,
	string text2,
	DateTime deadline
)
View Source

Parameters

text1  String
Old string to be diffed
text2  String
New string to be diffed
deadline  DateTime
Time at which to bail if not yet complete

Return Value

ListDiff
List of Diff objects
See Also