I have this string:
std::string str = "t\tt\\";
Can I convert str
to raw string so it will be equal no to "t. t \"
but to "t\t\\"
(like I write R"t\t\\"
)?
I.e. if I do not use R-literal my symbols like \t \n \ will be replaced to tab symbol, new line character or . And I want convert string var in which this symbols are replaced to raw string in which they are not replaced. So can I convert string with escaping to string without escaping?
Aucun commentaire:
Enregistrer un commentaire