
28 May
2008
28 May
'08
1:20 p.m.
Can I use the tokenizer to seperate my command and every 3 chars? I have a string A) XXXYYY B) XXX,YYY Can I use the tokenizer to seperate these? I want to to check for strings of type A and then B. Here is some code that does B but what about A before? #include<iostream>#include<boost/tokenizer.hpp>#include <string>void { string s1 = string s = tokenizer<escaped_list_separator< cout << *beg << } }main()usingnamespacestd;usingnamespaceboost;"LDNTOK";"XXX,YYY";char> > tok(s);for(tokenizer<escaped_list_separator<char> >::iterator beg=tok.begin(); beg!=tok.end();++beg){"\n"; Cheers. Lars
6222
Age (days ago)
6222
Last active (days ago)
0 comments
1 participants
participants (1)
-
Lars Schouw