Escape a string ?
Temtaime via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Apr 9 06:09:55 PDT 2015
Hi ! I wonder how to escape a string in phobos ?
For example
auto a = [ "fooo\nbar" ];
auto b = format("%(%s%)", a);
gives b: "fooo\nbar"
Is there any other function to escape string? I'm looking for
something that doesn't require to make an array at first.
For example is there string escape(string s) in phobos ? I've
searched and have not found it.
More information about the Digitalmars-d-learn
mailing list