Lines Matching defs:contextChars
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) {
208 if ($contextChars == 0) {
212 $context = \dokuwiki\Utf8\PhpString::substr(substr($pageText, 0, $pageOffset), -$contextChars);
225 private function cropContextAfter($pageText, $pageOffset, $contextChars, $contextLines) {
226 if ($contextChars == 0) {
230 $context = \dokuwiki\Utf8\PhpString::substr(substr($pageText, $pageOffset), 0, $contextChars);
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);