35 std::string _nextToken();
43 Tokenizer(
const std::string& s,
const std::string& d );
63inline std::string Tokenizer::_nextToken()
68 n = arg.find( delim );
76 result = arg.substr( 0, n );
77 arg = arg.substr( n + delim.length(), arg.length() );
89 result = _nextToken();
91 while( result.empty() && !arg.empty() );
100 int n = arg.find_first_not_of( delim, 0 );
101 if( n >= 0 )
return 1;
Simple utility class to split a string into tokens.
Definition: Tokenizer.h:30
std::string nextToken()
Return the next token.
Definition: Tokenizer.h:85
int hasMoreTokens()
Indicate whether there are any tokens remaining.
Definition: Tokenizer.h:98
Tokenizer(const std::string &s, const std::string &d)
Constructor.
Definition: Tokenizer.h:55