C# Class idTech4.idCmdArgs

Command arguments.
Afficher le fichier Open project: iainmckay/idtech4.net Class Usage Examples

Méthodes publiques

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

public AppendArg ( string text ) : void
text string
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

Get() public méthode

Gets the argument at the specified index.
public Get ( int idx ) : string
idx int
Résultat string

Get() public méthode

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

Get() public méthode

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

ToString() public méthode

public ToString ( ) : string
Résultat string

TokenizeString() public méthode

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.
Résultat void

idCmdArgs() public méthode

public idCmdArgs ( ) : System
Résultat System

idCmdArgs() public méthode

public idCmdArgs ( string text, bool keepAsStrings ) : System
text string
keepAsStrings bool
Résultat System