![]() |
PandA-2024.02
|
Functor to tokenize string used with boost::tokenizer. More...
#include <utility.hpp>
Public Member Functions | |
| string_separator () | |
| Empty constructor. More... | |
| string_separator (const std::string &_delimiter) | |
| Constructor. More... | |
| bool | operator() (std::string::const_iterator &next, std::string::const_iterator &end, std::basic_string< char, std::char_traits< char >, std::allocator< char >> &tok) |
| Tokenize operator. More... | |
| void | reset () |
| Reset function (required to implement boost tokenizerFunction model. More... | |
Private Attributes | |
| const std::string | delimiter |
| The delimiter. More... | |
Functor to tokenize string used with boost::tokenizer.
Definition at line 177 of file utility.hpp.
|
inline |
Empty constructor.
Definition at line 187 of file utility.hpp.
|
inlineexplicit |
Constructor.
| delimiter | is the string used to divide the string |
Definition at line 195 of file utility.hpp.
|
inline |
Tokenize operator.
| next | is the start of the portion of the string to be tokenized |
| end | is the end of the string |
| tok | is the token found |
Definition at line 206 of file utility.hpp.
References counter.
|
inline |
Reset function (required to implement boost tokenizerFunction model.
Definition at line 234 of file utility.hpp.
|
private |
The delimiter.
Definition at line 181 of file utility.hpp.
1.8.13