5 while( (
j=input.find(sep,i))!=std::string::npos) {
6 if (alsoempty || (
j>i) ) push_back(input.substr(i,
j-i));
9 if (alsoempty || (i<input.size()) ) push_back(input.substr(i));
13 for (super::const_iterator
p=
begin();
p!=
end();
p++)
14 if (alsoempty || (!(*p).empty()) ) { out+=*
p; out+=sep;}
Tokenizer(const std::string &sep, const std::string &input, bool alsoempty=true)
void join(std::string &out, const std::string &sep, bool alsoempty=true) const