I am new in C++. I am trying to split a string which is like
<a:cb>:"dfddff:gh":[mjddl:]
My delimiter is :
, and entries inside <>
, ""
or []
should not be split. The output should be
a:cb
dfddff:gh
mjddl:
I want to create a function which takes the following parameters
SplitString(string StringToSplit,char delimiter,vector<char>escapeStartList,vector<char>escapeEndList)
Just wanted to know if there is something already existing like this in standard library or boost.
Most of the answer on stackoverflow provides escape sequence of quotation, here i want to use escape start and end.