-
(string) cleanup ($value)
Browse code
| $value |
The input YAML string |
Cleanups a YAML string to be parsed.
returns A cleaned up YAML string
-
(integer) getCurrentLineIndentation ()
Browse code
Returns the current line indentation.
returns The current line indentation
-
(string) getNextEmbedBlock ()
Browse code
Returns the next embed block of YAML.
returns A YAML string
-
(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.
-
(mixed) parse ($value)
Browse code
Parses a YAML string to a PHP value.
returns A PHP value
throws InvalidArgumentException If the YAML is not valid
-
(string) parseFoldedScalar ($separator, $indicator, $indentation)
Browse code
| $separator |
The separator that was used to begin this folded scalar (| or >) |
| $indicator |
The indicator that was used to begin this folded scalar (+ or -) |
| $indentation |
The indentation that was used to begin this folded scalar |
Parses a folded scalar.
returns The text value
-
(mixed) parseValue ($value)
Browse code
Parses a YAML value.
returns A PHP value
-
| $offset |
The offset of YAML document (used for line numbers in error messages) |
Constructor