class Parser

Parser parses YAML strings to convert them to PHP arrays.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • class \Symfony\Component\Yaml\Parser

Expanded class hierarchy of Parser

10 files declare their use of Parser
2 string references to 'Parser'

File

drupal/core/vendor/symfony/yaml/Symfony/Component/Yaml/Parser.php, line 20

Namespace

Symfony\Component\Yaml
View source

Members

Namesort descending Modifiers Type Description Overrides
Parser::$currentLine private property
Parser::$currentLineNb private property
Parser::$lines private property
Parser::$offset private property
Parser::$refs private property
Parser::cleanup private function Cleanups a YAML string to be parsed.
Parser::getCurrentLineIndentation private function Returns the current line indentation.
Parser::getNextEmbedBlock private function Returns the next embed block of YAML.
Parser::getRealCurrentLineNb private function Returns the current line number (takes the offset into account).
Parser::isCurrentLineBlank private function Returns true if the current line is blank.
Parser::isCurrentLineComment private function Returns true if the current line is a comment line.
Parser::isCurrentLineEmpty private function Returns true if the current line is blank or if it is a comment line.
Parser::isNextLineIndented private function Returns true if the next line is indented.
Parser::isNextLineUnIndentedCollection private function Returns true if the next line starts unindented collection
Parser::isStringUnIndentedCollectionItem private function Returns true if the string is un-indented collection item
Parser::moveToNextLine private function Moves the parser to the next line.
Parser::moveToPreviousLine private function Moves the parser to the previous line.
Parser::parse public function Parses a YAML string to a PHP value.
Parser::parseFoldedScalar private function Parses a folded scalar.
Parser::parseValue private function Parses a YAML value.
Parser::__construct public function Constructor