PHP Class Webmozart\Console\Args\TokenParser

Since: 1.0
Author: Bernhard Schussek ([email protected])
Datei anzeigen Open project: webmozart/console Class Usage Examples

Public Methods

Method Description
parseTokens ( string $string ) : array Parses the tokens from the given string.

Private Methods

Method Description
doParseTokens ( ) : array Parses an array of tokens.
next ( ) Advances the cursor to the next position.
parseEscapeSequence ( ) : string Parses an escape sequence started by a backslash.
parseQuotedString ( ) : string Parses a quoted string.
parseToken ( ) : string Parses a single token.
valid ( ) : boolean Returns whether the cursor position is valid.

Method Details

parseTokens() public method

Parses the tokens from the given string.
public parseTokens ( string $string ) : array
$string string The console arguments string.
return array The tokens.