FilterSyntaxMatcher
class FilterSyntaxMatcher extends AbstractRecursiveMatcher
Properties
protected RecursiveParser | $parser | from AbstractRecursiveMatcher |
Methods
Parse given string and return its value
Return the matchers configuration
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
in
AbstractRecursiveMatcher at line 23
void
__construct(RecursiveParser $parser)
No description
in
AbstractRecursiveMatcher at line 35
protected mixed
recurse(string $str, string $restrict = '')
Parse given string and return its value
at line 18
array
getMatchers()
Return the matchers configuration
Match name as key. Can be prefixed with a colon-separated list of groups, e.g. "Group:Name". Value must be a string or an array with the following elements:
- regexp: the regular expression used to match input.
- order: used to sort matchers. Defaults to 0.
- groups: list of groups this match belongs to. Defaults to an empty array.
- callback: called with the matched strings. Defaults to [$this, "parseX"] where X is the match name.
If the config is a string, the string is used for the "regexp" element.
at line 83
array
parseArray(string $elements = '')
No description
at line 109
array
parseArrayElement(string $key, string $value)
No description
at line 125
array
parseArrayElements(string $firstElement, string|null $otherElements = null)
No description
at line 140
string
parseDoubleQuotedString(string $str)
No description
at line 167
bool
parseFalse()
No description
at line 177
array
parseFilterCallback(string $callback, string|null $args = null)
No description
at line 188
array
parseFilterArg(string $argName, string $argValue)
No description
at line 206
array
parseFilterArgs(string $firstArg, string|null $otherArgs = null)
No description
at line 220
null
parseNull()
No description
at line 229
float
parseFloat(string $str)
No description
at line 238
int
parseInteger(string $str)
No description
at line 253
string
parseParam(string $str)
No description
at line 263
Regexp
parseRegexp(string $regexp, string $flags)
No description
at line 274
string
parseSingleQuotedString(string $str)
No description
at line 282
bool
parseTrue()
No description