The SplitByAnyOf class tokenizes a string using a set of delimiters.
More...
|
| 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...
|
| |
|
| | SplitByAnyOf (const boost::string_view delimiters) |
| | Construct the object from the given delimiters. More...
|
| |
| const MaskType & | Mask () const |
| | Return the mask. More...
|
| |
| MaskType & | Mask () |
| | Modify 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 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.
◆ MaskType
| using MaskType = std::array<bool, 1 << CHAR_BIT> |
◆ TokenType
◆ SplitByAnyOf()
Construct the object from the given delimiters.
- Parameters
-
| delimiters | The given delimiters. |
Definition at line 40 of file split_by_any_of.hpp.
◆ IsTokenEmpty()
| static bool IsTokenEmpty |
( |
const boost::string_view |
token | ) |
|
|
inlinestatic |
The function returns true if the given token is empty.
- Parameters
-
Definition at line 78 of file split_by_any_of.hpp.
◆ Mask() [1/2]
◆ Mask() [2/2]
◆ operator()()
| boost::string_view operator() |
( |
boost::string_view & |
str | ) |
const |
|
inline |
The function extracts the first token from the given string view and then removes the prefix containing the token from the view.
- Parameters
-
| str | String view to retrieve the token from. |
Definition at line 54 of file split_by_any_of.hpp.
The documentation for this class was generated from the following file: