|
mlpack 3.4.2
|
The SplitByAnyOf class tokenizes a string using a set of delimiters. More...
#include <split_by_any_of.hpp>
Public Types | |
| using | MaskType = std::array< bool, 1<< CHAR_BIT > |
| A convenient alias for the mask type. More... | |
| using | TokenType = boost::string_view |
| The type of the token which the tokenizer extracts. More... | |
Public Member Functions | |
| SplitByAnyOf (const boost::string_view delimiters) | |
| Construct the object from the given delimiters. More... | |
| MaskType & | Mask () |
| Modify the mask. More... | |
| const MaskType & | Mask () const |
| Return the mask. 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... | |
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.
Definition at line 26 of file split_by_any_of.hpp.
| using MaskType = std::array<bool, 1 << CHAR_BIT> |
A convenient alias for the mask type.
Definition at line 33 of file split_by_any_of.hpp.
| using TokenType = boost::string_view |
The type of the token which the tokenizer extracts.
Definition at line 30 of file split_by_any_of.hpp.
|
inline |
Construct the object from the given delimiters.
| delimiters | The given delimiters. |
Definition at line 40 of file split_by_any_of.hpp.
|
inlinestatic |
The function returns true if the given token is empty.
| token | The given token. |
Definition at line 78 of file split_by_any_of.hpp.
|
inline |
Modify the mask.
Definition at line 86 of file split_by_any_of.hpp.
|
inline |
Return the mask.
Definition at line 84 of file split_by_any_of.hpp.
|
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. |
Definition at line 54 of file split_by_any_of.hpp.
1.9.2