The class is used to split a string into characters.
More...
#include <char_extract.hpp>
|
using | TokenType = int |
| The type of the token which the tokenizer extracts.
|
|
|
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.
◆ IsTokenEmpty()
static bool mlpack::data::CharExtract::IsTokenEmpty |
( |
const int |
token | ) |
|
|
inlinestatic |
The function returns true if the given token is equal to EOF.
- Parameters
-
◆ operator()()
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.
- Parameters
-
str | String view to retrieve the next token from. |
The documentation for this class was generated from the following file: