[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/symfony/yaml/ -> Parser.php (summary)

(no description)

File Size: 1305 lines (52 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Parser:: (29 methods):
  parseFile()
  parse()
  doParse()
  parseBlock()
  getRealCurrentLineNb()
  getCurrentLineIndentation()
  getNextEmbedBlock()
  hasMoreLines()
  moveToNextLine()
  moveToPreviousLine()
  parseValue()
  parseBlockScalar()
  isNextLineIndented()
  isCurrentLineEmpty()
  isCurrentLineBlank()
  isCurrentLineComment()
  isCurrentLineLastLineInDocument()
  cleanup()
  isNextLineUnIndentedCollection()
  isStringUnIndentedCollectionItem()
  preg_match()
  trimTag()
  getLineTag()
  lexInlineQuotedString()
  lexUnquotedString()
  lexInlineMapping()
  lexInlineSequence()
  lexInlineStructure()
  consumeWhitespaces()


Class: Parser  - X-Ref

Parser parses YAML strings to convert them to PHP arrays.

parseFile(string $filename, int $flags = 0)   X-Ref
Parses a YAML file into a PHP value.

param: string $filename The path to the YAML file to be parsed
param: int    $flags    A bit field of PARSE_* constants to customize the YAML parser behavior
return: mixed

parse(string $value, int $flags = 0)   X-Ref
Parses a YAML string to a PHP value.

param: string $value A YAML string
param: int    $flags A bit field of PARSE_* constants to customize the YAML parser behavior
return: mixed

doParse(string $value, int $flags)   X-Ref
No description

parseBlock(int $offset, string $yaml, int $flags)   X-Ref
No description

getRealCurrentLineNb()   X-Ref
Returns the current line number (takes the offset into account).


getCurrentLineIndentation()   X-Ref
Returns the current line indentation.


getNextEmbedBlock(int $indentation = null, bool $inSequence = false)   X-Ref
Returns the next embed block of YAML.

param: int|null $indentation The indent level at which the block is to be read, or null for default
param: bool     $inSequence  True if the enclosing data structure is a sequence

hasMoreLines()   X-Ref
No description

moveToNextLine()   X-Ref
Moves the parser to the next line.


moveToPreviousLine()   X-Ref
Moves the parser to the previous line.


parseValue(string $value, int $flags, string $context)   X-Ref
Parses a YAML value.

param: string $value   A YAML value
param: int    $flags   A bit field of PARSE_* constants to customize the YAML parser behavior
param: string $context The parser context (either sequence or mapping)
return: mixed

parseBlockScalar(string $style, string $chomping = '', int $indentation = 0)   X-Ref
Parses a block scalar.

param: string $style       The style indicator that was used to begin this block scalar (| or >)
param: string $chomping    The chomping indicator that was used to begin this block scalar (+ or -)
param: int    $indentation The indentation indicator that was used to begin this block scalar

isNextLineIndented()   X-Ref
Returns true if the next line is indented.


isCurrentLineEmpty()   X-Ref
Returns true if the current line is blank or if it is a comment line.


isCurrentLineBlank()   X-Ref
Returns true if the current line is blank.


isCurrentLineComment()   X-Ref
Returns true if the current line is a comment line.


isCurrentLineLastLineInDocument()   X-Ref
No description

cleanup(string $value)   X-Ref
Cleanups a YAML string to be parsed.

param: string $value The input YAML string

isNextLineUnIndentedCollection()   X-Ref
Returns true if the next line starts unindented collection.


isStringUnIndentedCollectionItem()   X-Ref
Returns true if the string is un-indented collection item.


preg_match(string $pattern, string $subject, array &$matches = null, int $flags = 0, int $offset = 0)   X-Ref
A local wrapper for "preg_match" which will throw a ParseException if there
is an internal error in the PCRE engine.

This avoids us needing to check for "false" every time PCRE is used
in the YAML engine


trimTag(string $value)   X-Ref
Trim the tag on top of the value.

Prevent values such as "!foo {quz: bar}" to be considered as
a mapping block.

getLineTag(string $value, int $flags, bool $nextLineCheck = true)   X-Ref
No description

lexInlineQuotedString(int &$cursor = 0)   X-Ref
No description

lexUnquotedString(int &$cursor)   X-Ref
No description

lexInlineMapping(int &$cursor = 0)   X-Ref
No description

lexInlineSequence(int &$cursor = 0)   X-Ref
No description

lexInlineStructure(int &$cursor, string $closingTag)   X-Ref
No description

consumeWhitespaces(int &$cursor)   X-Ref
No description



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer