Automattic\WooCommerce\Vendor\Sabberworm\CSS\Parsing
ParserState::consumeExpression
Метод класса: ParserState{}
Хуков нет.
Возвращает
Строку.
Использование
$ParserState = new ParserState(); $ParserState->consumeExpression( $mExpression, $iMaxLength );
- $mExpression(строка) (обязательный)
- .
- $iMaxLength(int|null)
- .
По умолчанию: null
Код ParserState::consumeExpression() ParserState::consumeExpression WC 10.4.3
public function consumeExpression($mExpression, $iMaxLength = null)
{
$aMatches = null;
$sInput = $iMaxLength !== null ? $this->peek($iMaxLength) : $this->inputLeft();
if (preg_match($mExpression, $sInput, $aMatches, PREG_OFFSET_CAPTURE) === 1) {
return $this->consume($aMatches[0][0]);
}
throw new UnexpectedTokenException($mExpression, $this->peek(5), 'expression', $this->iLineNo);
}