Lines Matching defs:offset
308 public function markMatch($offset) {
309 if (array_key_exists($offset, $this->matches)) {
310 $this->matches[$offset]->mark();
413 private function addMatch($text, $offset, $matched, $regexp, $replacement, $contextChars, $contextLines) {
414 $this->matches[$offset] = new BatcheditMatch($text, $offset, $matched, $regexp, $replacement, $contextChars, $contextLines);
795 abstract public function markMatch($pageId, $offset);
814 public function markMatch($pageId, $offset) {
822 if (!array_key_exists($offset, $matches) || !array_key_exists($offset, $cache)) {
826 if ($this->compareMatches($matches[$offset], $cache[$offset])) {
827 $this->pages[$pageId]->markMatch($offset);
855 public function markMatch($pageId, $offset) {
857 $this->pages[$pageId]->markMatch($offset);
867 public function markMatch($pageId, $offset) {
872 if (array_key_exists($offset, $this->pages[$pageId]->getMatches())) {
873 $this->pages[$pageId]->markMatch($offset);
884 if ($offset < $matchOffset - strlen($match->getContextBefore())) {
888 if ($offset >= $matchOffset + strlen($match->getOriginalText()) + strlen($match->getContextAfter())) {
892 $delta = abs($matchOffset - $offset);
1076 list($pageId, $offset) = explode('#', $matchId);
1078 $policy->markMatch($pageId, $offset);