[ Index ]

PHP Cross Reference of phpBB-3.3.9-deutsch

title

Body

[close]

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

(no description)

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

Defines 1 class

Parser:: (24 methods):
  __construct()
  parseFile()
  parse()
  doParse()
  parseBlock()
  getRealCurrentLineNb()
  getCurrentLineIndentation()
  getNextEmbedBlock()
  moveToNextLine()
  moveToPreviousLine()
  parseValue()
  parseBlockScalar()
  isNextLineIndented()
  isCurrentLineEmpty()
  isCurrentLineBlank()
  isCurrentLineComment()
  isCurrentLineLastLineInDocument()
  cleanup()
  isNextLineUnIndentedCollection()
  isStringUnIndentedCollectionItem()
  preg_match()
  trimTag()
  getLineTag()
  getDeprecationMessage()


Class: Parser  - X-Ref

Parser parses YAML strings to convert them to PHP arrays.

__construct()   X-Ref
No description

parseFile($filename, $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 The YAML converted to a PHP value

parse($value, $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 A PHP value

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

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

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

return: int The current line number

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

return: int The current line indentation

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

param: int  $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
return: string A YAML string

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

return: bool

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

return: bool

parseValue($value, $flags, $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 A PHP value

parseBlockScalar($style, $chomping = '', $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
return: string The text value

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

return: bool Returns true if the next line is indented, false otherwise

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

return: bool Returns true if the current line is empty or if it is a comment line, false otherwise

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

return: bool Returns true if the current line is blank, false otherwise

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

return: bool Returns true if the current line is a comment line, false otherwise

isCurrentLineLastLineInDocument()   X-Ref
No description

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

param: string $value The input YAML string
return: string A cleaned up YAML string

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

return: bool Returns true if the next line starts unindented collection, false otherwise

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

return: bool Returns true if the string is un-indented collection item, false otherwise

preg_match($pattern, $subject, &$matches = null, $flags = 0, $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($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($value, $flags, $nextLineCheck = true)   X-Ref

return: string|null

getDeprecationMessage($message)   X-Ref
No description



Generated: Wed Dec 7 15:09:22 2022 Cross-referenced by PHPXref 0.7.1