C# Class Orchard.Recipes.RecipeHandlers.CommandParser

Exibir arquivo Open project: ucdavis/Orchard Class Usage Examples

Public Methods

Method Description
ParseCommandParameters ( string command ) : Orchard.Commands.CommandParameters

Private Methods

Method Description
ProcessBackslash ( State state ) : void
ProcessQuote ( State state ) : void
SplitArgs ( string commandLine ) : IEnumerable

Implement the same logic as found at http://msdn.microsoft.com/en-us/library/17w5ykft.aspx The 3 special characters are quote, backslash and whitespaces, in order of priority. The semantics of a quote is: whatever the state of the lexer, copy all characters verbatim until the next quote or EOF. The semantics of backslash is: If the next character is a backslash or a quote, copy the next character. Otherwise, copy the backslash and the next character. The semantics of whitespace is: end the current argument and move on to the next one.

Method Details

ParseCommandParameters() public method

public ParseCommandParameters ( string command ) : Orchard.Commands.CommandParameters
command string
return Orchard.Commands.CommandParameters