The class is used to split a string into characters. More...
Public Types | |
using | TokenType = int |
The type of the token which the tokenizer extracts. More... | |
Public Member Functions | |
int | operator() (boost::string_view &str) const |
The function extracts the first character from the given string view and removes it from the view. More... | |
Static Public Member Functions | |
static bool | IsTokenEmpty (const int token) |
The function returns true if the given token is equal to EOF. More... | |
The class is used to split a string into characters.
Definition at line 25 of file char_extract.hpp.
using TokenType = int |
The type of the token which the tokenizer extracts.
Definition at line 29 of file char_extract.hpp.
|
inlinestatic |
The function returns true if the given token is equal to EOF.
token | The given token. |
Definition at line 56 of file char_extract.hpp.
|
inline |
The function extracts the first character from the given string view and removes it from the view.
Each charecter is casted to unsigned char i.e. it belongs to [0, 255]. The functon returns EOF provided that the input string is empty.
str | String view to retrieve the next token from. |
Definition at line 39 of file char_extract.hpp.