$cursor +=
strcspn($this->currentLine, '[]{},: ',
$cursor);
if ($cursor ===
$offset) { throw new ParseException('Malformed unquoted YAML string.'
);
} return substr($this->currentLine,
$offset,
$cursor -
$offset);
} private function lexInlineMapping(int &
$cursor = 0
): string
{ return $this->
lexInlineStructure($cursor, '}'
);
} private function lexInlineSequence(int &
$cursor = 0
): string
{ return $this->
lexInlineStructure($cursor, ']'
);
} private function lexInlineStructure(int &
$cursor, string
$closingTag): string
{ $value =
$this->currentLine
[$cursor];
++
$cursor;