FastLED 3.9.15
Loading...
Searching...
No Matches

◆ append_escaped()

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

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

1141 {
1142 out.push_back('"');
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 }
1156 out.push_back('"');
1157 }
fl::size size() const FL_NOEXCEPT
fl::deque< char > & out
void append(const char *str)

References append(), out, and fl::basic_string::size().

Referenced by accept(), and accept().

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