Method |
Description |
|
cleanup ( string $value ) : string |
Cleanups a YAML string to be parsed. |
|
getCurrentLineIndentation ( ) : integer |
Returns the current line indentation. |
|
getNextEmbedBlock ( integer $indentation = null, boolean $inSequence = false ) : string |
Returns the next embed block of YAML. |
|
getRealCurrentLineNb ( ) : integer |
Returns the current line number (takes the offset into account). |
|
isBlockScalarHeader ( ) : boolean |
Tests whether or not the current line is the header of a block scalar. |
|
isCurrentLineBlank ( ) : boolean |
Returns true if the current line is blank. |
|
isCurrentLineComment ( ) : boolean |
Returns true if the current line is a comment line. |
|
isCurrentLineEmpty ( ) : boolean |
Returns true if the current line is blank or if it is a comment line. |
|
isCurrentLineLastLineInDocument ( ) |
|
|
isNextLineIndented ( ) : boolean |
Returns true if the next line is indented. |
|
isNextLineUnIndentedCollection ( ) : boolean |
Returns true if the next line starts unindented collection. |
|
isStringUnIndentedCollectionItem ( ) : boolean |
Returns true if the string is un-indented collection item. |
|
moveToNextLine ( ) : boolean |
Moves the parser to the next line. |
|
moveToPreviousLine ( ) : boolean |
Moves the parser to the previous line. |
|
parseBlock ( $offset, $yaml, $flags ) |
|
|
parseBlockScalar ( string $style, string $chomping = '', integer $indentation ) : string |
Parses a block scalar. |
|
parseValue ( string $value, integer $flags, string $context ) : mixed |
Parses a YAML value. |
|