Escape quotes, newlines, and similar when printing C strings.
Escape quotes, newlines, and similar when printing C strings.

The implementation uses std::string which may violate the requirement that CxxTest should be able to run w/o a standard C library.

It also leaks the buffer returned. I don’t consider this crucial as unit tests are short-lived and run in their own process.

davidraleigh/cxxtest,davidraleigh/cxxtest,davidraleigh/cxxtest,davidraleigh/cxxtest,davidraleigh/cxxtest