Definition at line 43 of file json_stream_writer.cpp.hpp.
43 {
45 if (s) {
46 for (; *s; ++s) {
47 const unsigned char c = static_cast<unsigned char>(*s);
48 switch (c) {
49 case '"':
puts(
"\\\"");
break;
50 case '\\':
puts(
"\\\\");
break;
51 case '\n':
puts(
"\\n");
break;
52 case '\r':
puts(
"\\r");
break;
53 case '\t':
puts(
"\\t");
break;
54 case '\b':
puts(
"\\b");
break;
55 case '\f':
puts(
"\\f");
break;
56 default:
57 if (c < 0x20) {
58
59 static const char *kHex = "0123456789abcdef";
63 } else {
65 }
66 break;
67 }
68 }
69 }
71}
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().