Lines Matching refs:text
24 function mb_preg_match($text, $matchRegex, $position=0) { argument
27 $textPiece = mb_substr($text, $position);
42 function sb_preg_match($text, $matchRegex, $position=0) { argument
44 $result = preg_match($matchRegex, $text, $matches, PREG_OFFSET_CAPTURE, $position);
91 public function tryMatch($text, $position) { argument
93 return mb_preg_match($text, $this->_matchRegex, $position);
95 return sb_preg_match($text, $this->_matchRegex, $position);
110 public function __construct($definition, $text, $position, $length) { argument
112 $this->_text = $text;
118 public function text() { return $this->_text; } function in AST\\TokenInstance
134 function tokenize($text, array $tokDefs, array $stripTokDefs) { argument
136 $textLen = mb_strlen($text);
138 $textLen = strlen($text);
146 $match = $tokDef->tryMatch($text, $position);
153 $foundTokInst = new TokenInstance($tokDef, $text, $position, $matchLen);
158 throw new UnknownTokenException($text, $position);