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.
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
kenyatta answered on 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.
charity84 answered on 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