Lines Matching defs:contextLines
96 public function __construct($pageText, $pageOffset, $text, $regexp, $replacement, $contextChars, $contextLines) {
100 $this->contextBefore = $this->cropContextBefore($pageText, $pageOffset, $contextChars, $contextLines);
101 $this->contextAfter = $this->cropContextAfter($pageText, $pageOffset + strlen($text), $contextChars, $contextLines);
207 private function cropContextBefore($pageText, $pageOffset, $contextChars, $contextLines) {
215 if ($count > $contextLines) {
216 $context = substr($context, $match[$count - $contextLines - 1][0][1] + 1);
225 private function cropContextAfter($pageText, $pageOffset, $contextChars, $contextLines) {
233 if ($count > $contextLines) {
234 $context = substr($context, 0, $match[$contextLines][0][1]);
264 public function findMatches($regexp, $replacement, $limit, $contextChars, $contextLines, $applyTemplatePatterns) {
292 $contextChars, $contextLines);
413 private function addMatch($text, $offset, $matched, $regexp, $replacement, $contextChars, $contextLines) {
414 $this->matches[$offset] = new BatcheditMatch($text, $offset, $matched, $regexp, $replacement, $contextChars, $contextLines);
1017 public function findMatches($namespace, $regexp, $replacement, $limit, $contextChars, $contextLines, $applyTemplatePatterns) {
1024 $contextChars, $contextLines, $applyTemplatePatterns);