using 2 mark quotes, the ' " ' it's printed:
""""
prints:
"
so see these text:
"var name as string = \"hello "" world\"\n"
letter by letter how can i compare the "" ? if((strinput[uintStringIndex]=='\"' && strinput[uintStringIndex+1]=='\"') || (strinput[uintStringIndex]=='""' && strinput[uintStringIndex+1]=='""'))
these code works fine for \", but when i use the "" isn't compared, because print's ".
so can anyone advice me?
There is such thing as a multi-character literal, which uses the single-quote characters as a delimiter.
We're used to seeing single-byte character literals,'a', 'b', '\"', etc., but it is also (syntactically) correct to put more than one character in the single quotes, like you've done here: '""'. This forms a "multi-character literal" with type int, and an implementation-defined value.