-
Cleanups a YAML string to be parsed.
returns A cleaned up YAML string
-
getCurrentLineIndentation ()
Browse code
Returns the current line indentation.
-
Returns the next embed block of YAML.
-
(integer) getRealCurrentLineNb ()
Browse code
Returns the current line number (takes the offset into account).
returns The current line number
-
(Boolean) isCurrentLineBlank ()
Browse code
Returns true if the current line is blank.
returns Returns true if the current line is blank, false otherwise
-
(Boolean) isCurrentLineComment ()
Browse code
Returns true if the current line is a comment line.
returns Returns true if the current line is a comment line, false otherwise
-
(Boolean) isCurrentLineEmpty ()
Browse code
Returns true if the current line is blank or if it is a comment line.
returns Returns true if the current line is empty or if it is a comment line, false otherwise
-
(Boolean) isNextLineIndented ()
Browse code
Returns true if the next line is indented.
returns Returns true if the next line is indented, false otherwise
-
Moves the parser to the next line.
-
Moves the parser to the previous line.
-
Parses a YAML string to a PHP value.
returns A PHP value
-
(string) parseFoldedScalar (, , )
Browse code
Parses a folded scalar.
returns The text value
-
Parses a YAML value.
returns A PHP value
-
Constructor