8#ifndef HPP_ALIB_STRINGS_UTIL_TOKENIZER
9#define HPP_ALIB_STRINGS_UTIL_TOKENIZER 1
14namespace alib {
namespace strings {
58template<
typename TChar>
135 this->delim = delimiter;
136 this->skipEmpty = skipEmptyTokens;
160 TChar newDelim=
'\0' );
TLocalString< TChar, 8 > TrimChars
bool skipEmpty
If true, empty tokens are omitted.
TSubstring< TChar > & GetRest(lang::Whitespaces trimming=lang::Whitespaces::Trim)
ALIB_API TSubstring< TChar > & Next(lang::Whitespaces trimming=lang::Whitespaces::Trim, TChar newDelim='\0')
TTokenizer(const TString< TChar > &src, TChar delimiter, bool skipEmptyTokens=false)
TTokenizer()
Constructs an empty tokenizer. To initialize, method Set needs to be invoked.
TChar delim
The most recently set delimiter used by default for the next token extraction.
TSubstring< TChar > Actual
void Set(const TString< TChar > &src, TChar delimiter, bool skipEmptyTokens=false)
Whitespaces
Denotes whether a string is trimmed or not.
@ Trim
Trim whitespaces away.
characters::wchar wchar
Type alias in namespace alib.
characters::nchar nchar
Type alias in namespace alib.