Hi
how to add to the string ", \n\r\t" also " type of simbol. I want to check also if chunckOfData[i] isn't ".Code:if ((strchr(", \n\r\t", chunckOfData[i])) ........
Thankyou in advice.
Printable View
Hi
how to add to the string ", \n\r\t" also " type of simbol. I want to check also if chunckOfData[i] isn't ".Code:if ((strchr(", \n\r\t", chunckOfData[i])) ........
Thankyou in advice.
Obviously english isn't your first language, I'm not quite sure that I understand your question, but I will say that you should probably be using std::string instead of char*, they are much easier and flexible. Adding strings is as simple as doing string1+string2;
Code:bool isChunkQuote = ChunkofData == '\"';
Yes. My English isn't that good. But I will try my best ;)
Simple example.
" \n\t\r"
" " \n\t\r"
And how to put it in this construction if ((strchr(", \n\r\t", chunckOfData[i])) ........
Then I was toying with php some years ago I know it was posible like " \n\r/"/" or something like this...
So I think C++ should have something similar.
Basically, you are asking how to escape the double quote within a string literal? If so, then the answer is that you should escape it by prepending a backslash, e.g., ", \n\r\t\\".Quote:
Originally Posted by ulumulu