Click or drag to resize

DiffMatchPatchDiffHalfMatch Method

Do the two texts share a Substring which is at least half the length of the longer text? This speedup can produce non-minimal diffs.

Namespace: GSF.Text
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntax
protected string[] DiffHalfMatch(
	string text1,
	string text2
)
View Source

Parameters

text1  String
First string
text2  String
Second string

Return Value

String
Five element String array, containing the prefix of text1, the suffix of text1, the prefix of text2, the suffix of text2 and the common middle. Or null if there was no match.
See Also