Definition at line 1141 of file json.cpp.hpp.
1141 {
1143 for (
size_t i = 0; i < str.
size(); ++i) {
1144 char c = str[i];
1145 switch (c) {
1146 case '"':
append(
"\\\"");
break;
1147 case '\\':
append(
"\\\\");
break;
1148 case '\n':
append(
"\\n");
break;
1149 case '\r':
append(
"\\r");
break;
1150 case '\t':
append(
"\\t");
break;
1151 case '\b':
append(
"\\b");
break;
1152 case '\f':
append(
"\\f");
break;
1153 default:
out.push_back(c);
break;
1154 }
1155 }
1157 }
fl::size size() const FL_NOEXCEPT
void append(const char *str)
References append(), out, and fl::basic_string::size().
Referenced by accept(), and accept().