Manages argument list with unicode strings. More...
#include <decUnicodeArgumentList.h>
Public Member Functions | |
Constructors and Destructors | |
| decUnicodeArgumentList () | |
| Creates a new empty argument list object. | |
| ~decUnicodeArgumentList () | |
| Frees the argument list object. | |
Management | |
| int | GetArgumentCount () const |
| Retrieves the number of arguments. | |
| const decUnicodeString * | GetArgumentAt (int index) const |
| Retrieves the argument at the given index. | |
| void | AddArgument (const decUnicodeString &argument) |
| Adds an argument to the end of the list. | |
| bool | MatchesArgumentAt (int index, const char *string) const |
| Determines if the given argument matches the provided utf8 string. | |
| void | RemoveAllArguments () |
| Removes all arguments. | |
| void | ParseCommand (const decUnicodeString &command) |
| Parses command line passed into arguments which are then added to the end of the list. | |
Manages argument list with unicode strings.
Provides support to parse unicode strings into an argument list using common separation schemas. Easy to use for obtaining commands in unicode format and turning them into a simple to use argument list.
| decUnicodeArgumentList::decUnicodeArgumentList | ( | ) |
Creates a new empty argument list object.
| decUnicodeArgumentList::~decUnicodeArgumentList | ( | ) |
Frees the argument list object.
| void decUnicodeArgumentList::AddArgument | ( | const decUnicodeString & | argument ) |
Adds an argument to the end of the list.
| const decUnicodeString* decUnicodeArgumentList::GetArgumentAt | ( | int | index ) | const |
Retrieves the argument at the given index.
| int decUnicodeArgumentList::GetArgumentCount | ( | ) | const [inline] |
Retrieves the number of arguments.
| bool decUnicodeArgumentList::MatchesArgumentAt | ( | int | index, |
| const char * | string | ||
| ) | const |
Determines if the given argument matches the provided utf8 string.
| void decUnicodeArgumentList::ParseCommand | ( | const decUnicodeString & | command ) |
Parses command line passed into arguments which are then added to the end of the list.
Arguments are considered separated by a white space. Quoted text strings are considered one argument. This function is present for operating systems not providing an entry point function which already splits up the arguments.
| void decUnicodeArgumentList::RemoveAllArguments | ( | ) |
Removes all arguments.
1.7.2