27 namespace graphene {
namespace utilities {
31 std::ostringstream escaped_string;
32 escaped_string <<
"\"";
33 for (
unsigned i = 0; i < input.size(); ++i)
38 escaped_string <<
"\\a";
41 escaped_string <<
"\\b";
44 escaped_string <<
"\\t";
47 escaped_string <<
"\\n";
50 escaped_string <<
"\\v";
53 escaped_string <<
"\\f";
56 escaped_string <<
"\\r";
59 escaped_string <<
"\\\\";
62 escaped_string <<
"\\\"";
65 escaped_string << input[i];
68 escaped_string <<
"\"";
69 return escaped_string.str();