|
mlpack
|
The SplitByAnyOf class tokenizes a string using a set of delimiters. More...
#include <split_by_any_of.hpp>
Public Types | |
| using | TokenType = boost::string_view |
| The type of the token which the tokenizer extracts. | |
| using | MaskType = std::array< bool, 1<< CHAR_BIT > |
| A convenient alias for the mask type. | |
Public Member Functions | |
| SplitByAnyOf (const boost::string_view delimiters) | |
| Construct the object from the given delimiters. More... | |
| boost::string_view | operator() (boost::string_view &str) const |
| The function extracts the first token from the given string view and then removes the prefix containing the token from the view. More... | |
| const MaskType & | Mask () const |
| Return the mask. | |
| MaskType & | Mask () |
| Modify the mask. | |
Static Public Member Functions | |
| static bool | IsTokenEmpty (const boost::string_view token) |
| The function returns true if the given token is empty. More... | |
The SplitByAnyOf class tokenizes a string using a set of delimiters.
|
inline |
Construct the object from the given delimiters.
| delimiters | The given delimiters. |
|
inlinestatic |
The function returns true if the given token is empty.
| token | The given token. |
|
inline |
The function extracts the first token from the given string view and then removes the prefix containing the token from the view.
| str | String view to retrieve the token from. |
1.8.13