#include <Tokenizer.hxx>
Definition at line 33 of file Tokenizer.hxx.
◆ Tokenizer() [1/2]
constexpr Tokenizer::Tokenizer |
( |
char * |
_input | ) |
|
|
inline |
- Parameters
-
_input | the input string; the contents will be modified by this class |
Definition at line 41 of file Tokenizer.hxx.
◆ Tokenizer() [2/2]
◆ CurrentChar()
char Tokenizer::CurrentChar |
( |
| ) |
const |
|
inline |
◆ IsEnd()
bool Tokenizer::IsEnd |
( |
| ) |
const |
|
inline |
◆ NextParam()
char* Tokenizer::NextParam |
( |
| ) |
|
Reads the next unquoted word or quoted string from the input.
This is a wrapper for NextUnquoted() and NextString(). Throws std::runtime_error on error.
- Returns
- a pointer to the null-terminated string, or nullptr on end of line
◆ NextString()
char* Tokenizer::NextString |
( |
| ) |
|
Reads the next quoted string from the input string.
A backslash escapes the following character. This function modifies the input string. Throws std::runtime_error on error.
- Returns
- a pointer to the null-terminated string, or nullptr end of line
◆ NextUnquoted()
char* Tokenizer::NextUnquoted |
( |
| ) |
|
Reads the next unquoted word from the input string.
Throws std::runtime_error on error.
- Returns
- a pointer to the null-terminated word, or nullptr on end of line
◆ NextWord()
char* Tokenizer::NextWord |
( |
| ) |
|
Reads the next word.
Throws std::runtime_error on error.
- Returns
- a pointer to the null-terminated word, or nullptr on end of line
◆ operator=()
◆ Rest()
char* Tokenizer::Rest |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: