Click or drag to resize

DiffMatchPatchMatchBitap Method

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

Namespace: GSF.Text
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.256-beta+0e7e94d39a9b10efe7e26e3b8d5130afc0dd4d74
Syntax
protected int MatchBitap(
	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