Definition at line 1260 of file json.cpp.hpp.
1260 {
1262 for (
size_t i = 0;
i <
str.size(); ++
i) {
1265 case '"':
append(
"\\\"");
break;
1266 case '\\':
append(
"\\\\");
break;
1267 case '\n':
append(
"\\n");
break;
1268 case '\r':
append(
"\\r");
break;
1269 case '\t':
append(
"\\t");
break;
1270 case '\b':
append(
"\\b");
break;
1271 case '\f':
append(
"\\f");
break;
1272 default:
1273 if (
static_cast<unsigned char>(
c) < 0x20) {
1274
1275
1276 static const char kHex[] =
"0123456789abcdef";
1278 out.push_back(
kHex[(
c >> 4) & 0xF]);
1280 } else {
1282 }
1283 break;
1284 }
1285 }
1287 }
void append(const char *str) FL_NO_EXCEPT
References append(), fl::FL_NO_EXCEPT, and out.
Referenced by accept(), and accept().