Click or drag to resize

DiffMatchPatchMatchMain Method

Locate the best instance of 'pattern' in 'text' near 'loc'. Returns -1 if no match found.

Namespace: GSF.Text
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.253-beta+ffb7163c9e3b771705bc5b9aa3f09870f2cb9e2c
Syntax
public int MatchMain(
	string text,
	string pattern,
	int loc
)
View Source

Parameters

text  String
The text to search
pattern  String
The pattern to search for
loc  Int32
The location to search around

Return Value

Int32
Best match index or -1
See Also