"Unescaping" literal strings
Hi everyone,
This is my first post :-). I was wondering if there was a standard library function that converted between a literal string and its escaped C version.
For example, a function that took
Code:
\"Hey there,\" he said. \\Yo, \u4F5B.
and returned
Code:
"Hey there," he said. \Yo, 佛.
...and that could convert it back the other way, similar to a C parser. I know it would be simple to write something that does this, but getting UTF escapes would be a bigger pain. Thanks in advance,
Yoshi