|
Parsnip
parsing library
|
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. | |
| StringType | remainder (size_type index) const |
| Retrieve the raw, untokenized remainder of the string. | |
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.
| 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. |