DiffMatchPatch\DiffMatchPatch::match_main PHP Method

match_main() public method

Locate the best instance of 'pattern' in 'text' near 'loc'.
public match_main ( string $text, string $pattern, integer $loc ) : integer
$text string The text to search.
$pattern string The pattern to search for.
$loc integer The location to search around.
return integer Best match index or -1.
    public function match_main($text, $pattern, $loc = 0)
    {
        return $this->match->main($text, $pattern, $loc);
    }