|
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.TextAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.246-beta+ff392465a0262ee2737937d4127fc3c2f08c6dcd
Syntaxprotected string[] DiffHalfMatch(
string text1,
string text2
)
Protected Function DiffHalfMatch (
text1 As String,
text2 As String
) As String()
protected:
array<String^>^ DiffHalfMatch(
String^ text1,
String^ text2
)
member DiffHalfMatch :
text1 : string *
text2 : string -> string[]
function DiffHalfMatch(text1, text2);
View SourceParameters
- 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