CachingRecursiveParser
class CachingRecursiveParser extends RecursiveParser
Properties
protected array | $callbacks | from RecursiveParser | |
protected array | $groupMatches | from RecursiveParser | |
protected array | $matchGroups | from RecursiveParser | |
protected string | $regexp | from RecursiveParser | |
protected array | $cache |
Methods
mixed
parse(string $str, string $restrict = '')
Parse given string
void
setMatchers(array $matchers)
Set the list of matchers used by this parser
array
getArguments(array $matches, string $name)
Get the list of arguments produced by a regexp's match
from
RecursiveParser
array
getMatchersConfig(array $matchers)
Collect, normalize, sort and return the config for all matchers
from
RecursiveParser
Details
at line 22
mixed
parse(string $str, string $restrict = '')
Parse given string
at line 35
void
setMatchers(array $matchers)
Set the list of matchers used by this parser
in
RecursiveParser at line 111
protected array
getArguments(array $matches, string $name)
Get the list of arguments produced by a regexp's match
in
RecursiveParser at line 145
protected array
getMatchersConfig(array $matchers)
Collect, normalize, sort and return the config for all matchers
in
RecursiveParser at line 182
static protected int
sortMatcherConfig(array $a, array $b)
Compare two matchers' config