String Tokenizer question
I am using boost 1.31 Tokenizer. The question I have is Can boost tokenizer
change the predicates on the fly?
For example:
string s = "my birthday is 1976, 15/17";
boost::tokenizer<> tok(s);
boost::tokenizer<>::iterator beg=tok.begin();
// here *beg will give us "my"
typedef boost::tokenizer
string s = "my birthday is 1976, 15/17";
I want to get is "my", "birthday is 1976", "15" and "17".
According to the documentation boost tokenizer 1.32 uses a TokenizerFunction to parse the string. If you provide your own function you can parse the string however you want. Hope his helps -delfin
I can not use 1.32 because I am using VC6.
"Delfin Rojas"
string s = "my birthday is 1976, 15/17";
I want to get is "my", "birthday is 1976", "15" and "17".
According to the documentation boost tokenizer 1.32 uses a TokenizerFunction to parse the string. If you provide your own function you can parse the string however you want.
Hope his helps
-delfin
participants (2)
-
Delfin Rojas
-
J Liu