|
pianod2
multisource multiuser scriptable networked music player
|
This class lexically analyzes a string, splitting it up into tokens, which are accessed as a vector. More...
#include <parsnip_argv.h>


Public Types | |
| using | StringType = value_type |
Public Member Functions | |
| ArgumentVector (const StringType &command_line) | |
| Construct an argument vector by splitting up a string into tokens. More... | |
| StringType | remainder (size_type index) const |
| Retrieve the raw, untokenized remainder of the string. More... | |
Private Attributes | |
| const StringType | original |
| The original command string. More... | |
| std::vector< StringType::size_type > | remainder_start |
| Index of token locations in original string. More... | |
Friends | |
| class | ArgvCursor |
This class lexically analyzes a string, splitting it up into tokens, which are accessed as a vector.
This involves splitting at spaces, or better quoted strings. At any token, the untokenized, original remainder can also be retrieved.
| using Parsnip::ArgumentVector::StringType = value_type |
| Parsnip::ArgumentVector::ArgumentVector | ( | const StringType & | cmd | ) |
Construct an argument vector by splitting up a string into tokens.
|
inline |
Retrieve the raw, untokenized remainder of the string.
| index | The index of the token to start retrieval. |

|
friend |
|
private |
The original command string.
|
private |
Index of token locations in original string.