Can be used as a delimiter char is not?

A the format string "data;data;data", then I will divide it into separate pieces and put them in a vector
As delimiter used ;
Actually the problem is that I have as data is the string of HTML, which is, in fact ;, and all single characters are there. How to divide a line, to get the whole html? Are any crutches.
July 2nd 19 at 17:10
3 answers
July 2nd 19 at 17:12
Solution
There are several options
1. Use as separator of multiple characters( for example, "!HTML SHALL NOT PASS!" )
2. To transcode the content data so that it is not met ";" ( e.g., record data in hex format )
3. To pass multiple lines
Thanks, I'll try the option of transcoding - Jaycee.Borer commented on July 2nd 19 at 17:15
July 2nd 19 at 17:14
When writing data to a line running through the symbols of each data. Replace all non-separation ';' with '; '. As the separator head ';;'.
To split the received string into pieces read character by character; when reading ';' seek information about whether the delimiter in the next character.
Actually, how to run through the characters of each data? for this kind, it is necessary to divide, as precisely this problem. About the ';;' as the delimiter -- and that's the problem, perhaps the only character i.e. one char. While that solved the problem using '\n' as separator, in the hope that in the html it will not occur. - Jaycee.Borer commented on July 2nd 19 at 17:17
July 2nd 19 at 17:16
If you know for sure a length of string to use as delimiter '\0', i.e. actually stored in a single chunk of memory several consecutive C-strings

Find more questions by tags AlgorithmsC++