I try to split the following text:
std::string text="1,2,3,(4,5,6,7),[8,9],10,{11,12},13";
I have the following code:
std::vector<std::string> found_list;
boost::split(found_list,text,boost::is_any_of(","))
But my desired output is:
1
2
3
(4,5,6,7)
[8,9]
10
{11,12}
13
Regarding parentheses and braces, how to implement it?
Aucun commentaire:
Enregistrer un commentaire