C# Class idTech4.idCmdArgs

Command arguments.
Show file Open project: iainmckay/idtech4.net Class Usage Examples

Public Methods

Method Description
AppendArg ( string text ) : void
Clear ( ) : void
Get ( int idx ) : string

Gets the argument at the specified index.

Get ( int start, int end ) : string

Gets the specified range as a single string.

Get ( int start, int end, bool escapeArgs ) : string

Gets the specified range as a single string.

ToString ( ) : string
TokenizeString ( string text, bool keepAsStrings ) : void

Takes a string and breaks it up into arg tokens.

idCmdArgs ( ) : System
idCmdArgs ( string text, bool keepAsStrings ) : System

Method Details

AppendArg() public method

public AppendArg ( string text ) : void
text string
return void

Clear() public method

public Clear ( ) : void
return void

Get() public method

Gets the argument at the specified index.
public Get ( int idx ) : string
idx int
return string

Get() public method

Gets the specified range as a single string.
public Get ( int start, int end ) : string
start int
end int
return string

Get() public method

Gets the specified range as a single string.
public Get ( int start, int end, bool escapeArgs ) : string
start int
end int
escapeArgs bool
return string

ToString() public method

public ToString ( ) : string
return string

TokenizeString() public method

Takes a string and breaks it up into arg tokens.
public TokenizeString ( string text, bool keepAsStrings ) : void
text string
keepAsStrings bool true to only seperate tokens from whitespace and comments, ignoring punctuation.
return void

idCmdArgs() public method

public idCmdArgs ( ) : System
return System

idCmdArgs() public method

public idCmdArgs ( string text, bool keepAsStrings ) : System
text string
keepAsStrings bool
return System