Is there a way to make Boost tokenizer to split below string without splitting quoted part?
string s = "1st 2nd \"3rd with some comment\" 4th";
Exptected output:
1st
2nd
3rd with some comment
4th
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this code and this way you can avoid using Boost.Tokenizer and Boost.Spirit libs
It uses a preallocated string array (it is not zero-based, but that’s easily fixable) and it’s pretty simple.