PHP Class Webmozart\Console\Args\TokenParser

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

Méthodes publiques

Méthode Description
parseTokens ( string $string ) : array Parses the tokens from the given string.

Private Methods

Méthode 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 méthode

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