class Core extends AbstractConvertor

Properties

protected RecursiveParser $parser from  AbstractRecursiveMatcher

Methods

void
__construct(RecursiveParser $parser)

No description

mixed
recurse(string $str, string $restrict = '')

Parse given string and return its value

string
getAttributeName(string $expr)

Retrieve the attribute name from an attribute expression

string
normalizeNumber(string $sign, string $number)

Normalize a number representation

array
getMatchers()

Return the matchers configuration

string
parseAttribute(string $attrName)

Convert the attribute syntax

string
parseDot()

Convert the dot syntax

string
parseLiteralNumber(string $sign, string $number)

Convert a literal number

string
parseLiteralString(string $string)

Convert a literal string

string
parseLocalName()

Convert a local-name() function call

string
parseName()

Convert a name() function call

string
parseNoop(string $expr)

No description

string
parseParameter(string $paramName)

Convert the parameter syntax

Details

void __construct(RecursiveParser $parser)

No description

Parameters

RecursiveParser $parser

Return Value

void

protected mixed recurse(string $str, string $restrict = '')

Parse given string and return its value

Parameters

string $str
string $restrict

Pipe-separated list of allowed matches (ignored if empty)

Return Value

mixed

in AbstractConvertor at line 20
protected string getAttributeName(string $expr)

Retrieve the attribute name from an attribute expression

Parameters

string $expr

XPath expression for an attribute, e.g. '@foo'

Return Value

string

Attribute name, e.g. 'foo'

in AbstractConvertor at line 32
protected string normalizeNumber(string $sign, string $number)

Normalize a number representation

Parameters

string $sign
string $number

Return Value

string

at line 15
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.

Return Value

array

at line 35
string parseAttribute(string $attrName)

Convert the attribute syntax

Parameters

string $attrName

Return Value

string

at line 45
string parseDot()

Convert the dot syntax

Return Value

string

at line 57
string parseLiteralNumber(string $sign, string $number)

Convert a literal number

Parameters

string $sign
string $number

Return Value

string

at line 68
string parseLiteralString(string $string)

Convert a literal string

Parameters

string $string

Literal string, including the quotes

Return Value

string

at line 78
string parseLocalName()

Convert a local-name() function call

Return Value

string

at line 88
string parseName()

Convert a name() function call

Return Value

string

at line 93
string parseNoop(string $expr)

No description

Parameters

string $expr

Return Value

string

at line 104
string parseParameter(string $paramName)

Convert the parameter syntax

Parameters

string $paramName

Return Value

string