mini\Parsing\GenericParser::parseQuoted() Method

private

Signature

private function parseQuoted(string $open, string $close): mini\Parsing\DelimitedNode

Parameters

Name Type Default Description
$open string required Documentation missing
$close string required Documentation missing

Returns

mini\Parsing\DelimitedNode

Documentation

Parse a quoted region starting at the current position.

Quoted regions are treated as opaque: their content is represented as a single TextNode child of the DelimitedNode.

Escape behavior inside the quote depends on $escapeStyle:

  • ESCAPE_NONE : no escapes, quote closes on the next matching char.
  • ESCAPE_C / ESCAPE_JSON: backslash escapes; backslash plus next char are treated as literal content.
  • ESCAPE_QUOTE_DOUBLING : doubled close char inside the quoted region is treated as an escaped quote.

Source

src/Parsing/GenericParser.php:217-296