FastLED 3.10.8
Loading...
Searching...
No Matches

◆ append_escaped()

void fl::SerializerVisitor::append_escaped ( const fl::string & str)
inline

Definition at line 1169 of file json.cpp.hpp.

1169 {
1170 out.push_back('"');
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 }
1184 out.push_back('"');
1185 }
fl::size size() const FL_NO_EXCEPT
fl::deque< char > & out
void append(const char *str) FL_NO_EXCEPT

References append(), fl::FL_NO_EXCEPT, and out.

Referenced by accept(), and accept().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: