Definition at line 44 of file json_stream_writer.cpp.hpp.
44 {
46 if (s) {
47 for (; *s; ++s) {
48 const unsigned char c = static_cast<unsigned char>(*s);
49 switch (c) {
50 case '"':
puts(
"\\\"");
break;
51 case '\\':
puts(
"\\\\");
break;
52 case '\n':
puts(
"\\n");
break;
53 case '\r':
puts(
"\\r");
break;
54 case '\t':
puts(
"\\t");
break;
55 case '\b':
puts(
"\\b");
break;
56 case '\f':
puts(
"\\f");
break;
57 default:
58 if (c < 0x20) {
59
60 static const char *kHex = "0123456789abcdef";
64 } else {
66 }
67 break;
68 }
69 }
70 }
72}
void writeChar(char c) FL_NO_EXCEPT
void puts(const char *s) FL_NO_EXCEPT
References fl::FL_NO_EXCEPT, puts(), and writeChar().
Referenced by key(), and value().