XPathHelper
abstract class XPathHelper
Methods
Decode strings inside of an XPath expression
Encode strings inside of an XPath expression
Return the list of variables used in a given XPath expression
Determine whether given XPath expression definitely evaluates to a number
Remove extraneous space in a given XPath expression
Remove consecutive parentheses where redundant
Parse an XPath expression that is composed entirely of equality tests between a variable part and a constant part
Evaluate a concat() expression where all arguments are string literals
Evaluate an XPath literal
Generate and return a cached XPath parser with a default set of matchers
Details
at line 28
static string
decodeStrings(string $expr)
Decode strings inside of an XPath expression
at line 46
static string
encodeStrings(string $expr)
Encode strings inside of an XPath expression
at line 64
static array
getVariables(string $expr)
Return the list of variables used in a given XPath expression
at line 85
static bool
isExpressionNumeric(string $expr)
Determine whether given XPath expression definitely evaluates to a number
at line 112
static string
minify(string $expr)
Remove extraneous space in a given XPath expression
at line 159
static protected string
removeRedundantParentheses(string $expr)
Remove consecutive parentheses where redundant
at line 192
static array|false
parseEqualityExpr(string $expr)
Parse an XPath expression that is composed entirely of equality tests between a variable part and a constant part
at line 236
static protected string
evaluateConcat(string $expr)
Evaluate a concat() expression where all arguments are string literals
at line 255
static protected string
evaluateLiteral(string $expr)
Evaluate an XPath literal
at line 270
static protected RecursiveParser
getXPathParser()
Generate and return a cached XPath parser with a default set of matchers