|
Ookii.CommandLine for C++
2.0.0
|
A pseudo-range for string tokenization. More...
#include <ookii/string_helper.h>
Public Member Functions | |
| tokenize (typename iterator::value_type value, CharType separator) noexcept | |
| Initializes a new instance of the tokenize class. More... | |
| iterator | begin () const noexcept |
| Gets a forward iterator to the first token. | |
| iterator | end () const noexcept |
| Gets an iterator that will compare equal once the iterator returned by begin() no longer has any tokens to return. | |
A pseudo-range for string tokenization.
This type lets the user tokenize a string and iterate over the results. It's not quite a real range, so cannot be used with view adapters.
| CharType | The character type of the string to tokenize. |
| Traits | The character traits of the string to tokenize. Defaults to std::char_traits<CharType>. |
|
inlinenoexcept |
Initializes a new instance of the tokenize class.
| value | The string to tokenize. |
| separator | The separator that divides the tokens. |