compute from a string the text of a string literal

Carl Sturtivant sturtivant at gmail.com
Wed Jan 17 18:44:14 UTC 2024


Hello,
I'd like a function like this,
```
string image(string s)
```
that maps any string s into the doubly quoted backslash escaped 
text that would be a string literal for s were it pasted into a 
program. Perhaps with a second parameter with detailed options.

Is there something out there I could use?



More information about the Digitalmars-d-learn mailing list