Lines Matching refs:offset
31 private $offset = 0;
103 $this->offset = 0;
457 // If the indentation is not consistent at offset 0, it is to be considered as a ParseError
458 if (0 === $this->offset && !$deprecatedUsage && isset($line[0]) && ' ' === $line[0]) {
518 private function parseBlock(int $offset, string $yaml, int $flags)
523 if ($lineNumber < $offset) {
531 $parser->offset = $offset;
541 * Returns the current line number (takes the offset into account).
547 $realCurrentLineNumber = $this->currentLineNb + $this->offset;
993 return ($this->offset + $this->currentLineNb) >= ($this->totalNumberOfLines - 1);
1008 $this->offset += $count;
1013 // items have been removed, update the offset
1014 $this->offset += substr_count($value, "\n") - substr_count($trimmedValue, "\n");
1021 // items have been removed, update the offset
1022 $this->offset += substr_count($value, "\n") - substr_count($trimmedValue, "\n");
1082 public static function preg_match(string $pattern, string $subject, array &$matches = null, int $flags = 0, int $offset = 0): int
1084 if (false === $ret = preg_match($pattern, $subject, $matches, $flags, $offset)) {
1216 $offset = $cursor;
1219 if ($cursor === $offset) {
1223 return substr($this->currentLine, $offset, $cursor - $offset);