Lines Matching refs:match
213 $count = preg_match_all('/\n/', $context, $match, PREG_SET_ORDER | PREG_OFFSET_CAPTURE);
216 $context = substr($context, $match[$count - $contextLines - 1][0][1] + 1);
231 $count = preg_match_all('/\n/', $context, $match, PREG_SET_ORDER | PREG_OFFSET_CAPTURE);
234 $context = substr($context, 0, $match[$contextLines][0][1]);
266 $count = @preg_match_all($regexp, $text, $match, PREG_SET_ORDER | PREG_OFFSET_CAPTURE);
291 $this->addMatch($text, $match[$i][0][1], $match[$i][0][0], $regexp, $replacement,
320 foreach ($this->matches as $match) {
321 if ($match->isMarked()) {
336 foreach ($this->matches as $match) {
337 if (!$match->isMarked()) {
352 foreach ($this->matches as $match) {
353 if (!$match->isApplied()) {
373 foreach ($this->matches as $match) {
374 if ($match->isMarked()) {
375 $text = $match->apply($text, strlen($text) - $originalLength);
438 foreach ($this->matches as $match) {
439 $match->rollback();
834 protected function compareMatches($match, $cache) {
835 return $match->getOriginalText() == $cache->getOriginalText() &&
836 $match->getReplacedText() == $cache->getReplacedText();
845 protected function compareMatches($match, $cache) {
846 return $match->getOriginalText() == $cache->getOriginalText();
881 foreach ($this->pages[$pageId]->getMatches() as $match) {
882 $matchOffset = $match->getPageOffset();
884 if ($offset < $matchOffset - strlen($match->getContextBefore())) {
888 if ($offset >= $matchOffset + strlen($match->getOriginalText()) + strlen($match->getContextAfter())) {