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.253-beta+ffb7163c9e3b771705bc5b9aa3f09870f2cb9e2c
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