I have string that I would like cut to substrings according 0x1d cahr delimiter. How to tell istringstream that it must extract chars dosed according 0x1d delimiter during >> operation?
string s("Somewhere"+string(1,0x1d)+"down"+string(1,0x1d)+"the"+string(1,0x1d)+"road");
istringstream iss(s);
do
{
string sub;
iss >> sub;
cout << "Substring: " << sub << endl;
} while (iss);