C# 클래스 cmdR.CommandParsing.CommandParserBase

파일 보기 프로젝트 열기: theouteredge/cmdR

공개 메소드들

메소드 설명
ParseSwitches ( string &cmd ) : string>.IDictionary

Parses out all the switches (/s /switch) contained within the command and places them within a dictionary, it also removes them from the passed in cmd param

보호된 메소드들

메소드 설명
GetEscappedToken ( string command, char terminator, char group, string escape, int position, int &nextposition ) : string
GetUnescappedToken ( string command, char terminator, int position, int &nextposition ) : string

gets the next unescaped token from the command, the first token in the command followed by a space, or if we dont have a space then we return the whole command as the token.

메소드 상세

GetEscappedToken() 보호된 메소드

protected GetEscappedToken ( string command, char terminator, char group, string escape, int position, int &nextposition ) : string
command string
terminator char
group char
escape string
position int
nextposition int
리턴 string

GetUnescappedToken() 보호된 메소드

gets the next unescaped token from the command, the first token in the command followed by a space, or if we dont have a space then we return the whole command as the token.
protected GetUnescappedToken ( string command, char terminator, int position, int &nextposition ) : string
command string
terminator char
position int
nextposition int
리턴 string

ParseSwitches() 공개 메소드

Parses out all the switches (/s /switch) contained within the command and places them within a dictionary, it also removes them from the passed in cmd param
public ParseSwitches ( string &cmd ) : string>.IDictionary
cmd string
리턴 string>.IDictionary