Is there an existing way to do it or do I have to roll my own? unittest{ assert(escapeC(`a"bc\ndef`~"\n") == `"a\"bc\\ndef\n"`); }
Likewise with escapeD (pastable in D code), which would return something like: `r"..."` for more readability
Timothee Cour via Digitalmars-d-learn Wed, 11 Jun 2014 11:16:35 -0700
Is there an existing way to do it or do I have to roll my own? unittest{ assert(escapeC(`a"bc\ndef`~"\n") == `"a\"bc\\ndef\n"`); }
Likewise with escapeD (pastable in D code), which would return something like: `r"..."` for more readability