Definition at line 1169 of file json.cpp.hpp.
1169 {
1171 for (
size_t i = 0; i < str.
size(); ++i) {
1172 char c = str[i];
1173 switch (c) {
1174 case '"':
append(
"\\\"");
break;
1175 case '\\':
append(
"\\\\");
break;
1176 case '\n':
append(
"\\n");
break;
1177 case '\r':
append(
"\\r");
break;
1178 case '\t':
append(
"\\t");
break;
1179 case '\b':
append(
"\\b");
break;
1180 case '\f':
append(
"\\f");
break;
1181 default:
out.push_back(c);
break;
1182 }
1183 }
1185 }
fl::size size() const FL_NO_EXCEPT
void append(const char *str) FL_NO_EXCEPT
References append(), fl::FL_NO_EXCEPT, and out.
Referenced by accept(), and accept().