Lines Matching defs:text
96 public function __construct($pageText, $pageOffset, $text, $regexp, $replacement, $contextChars, $contextLines) {
98 $this->originalText = $text;
99 $this->replacedText = preg_replace($regexp, $replacement, $text);
101 $this->contextAfter = $this->cropContextAfter($pageText, $pageOffset + strlen($text), $contextChars, $contextLines);
265 $text = rawWiki($this->id);
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,
369 $text = rawWiki($this->id);
370 $originalLength = strlen($text);
375 $text = $match->apply($text, strlen($text) - $originalLength);
380 saveWikiText($this->id, $text, $summary, $minorEdit);
413 private function addMatch($text, $offset, $matched, $regexp, $replacement, $contextChars, $contextLines) {
414 $this->matches[$offset] = new BatcheditMatch($text, $offset, $matched, $regexp, $replacement, $contextChars, $contextLines);