|
Boost Users : |
From: Sean Shubin (sean.shubin_at_[hidden])
Date: 2002-09-04 13:03:59
For example, using the code:
string line = "\taaa\t\tbbb\t";
typedef tokenizer<char_separator<char> > tok;
char_separator<char> sep("\t");
tok tokens(line, sep);
for(tok::iterator i = tokens.begin();i!=tokens.end();++i) {
cout << "\t\"" << *i << "\"" << endl;
}
I get this output:
"aaa"
"bbb"
I want to get this output:
""
"aaa"
""
"bbb"
""
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net