Lines Matching refs:offset
468 $offset = 0;
490 } elseif (preg_match('/' . $re3 . '/iu', $text, $match, PREG_OFFSET_CAPTURE, $offset)) {
491 } elseif (preg_match('/' . $re2 . '/iu', $text, $match, PREG_OFFSET_CAPTURE, $offset)) {
492 } elseif (preg_match('/' . $re1 . '/iu', $text, $match, PREG_OFFSET_CAPTURE, $offset)) {
499 // convert $idx (a byte offset) into a utf8 character offset
516 } elseif ($offset == 0) {
536 // set $offset for next match attempt
538 // if the current match is not the longest possible match starting at the current offset
542 $offset = $idx + strlen(PhpString::substr($text, $utf8_idx, $utf8_len));
543 $offset = Clean::correctIdx($text, $offset);