MCPcopy Create free account
hub / github.com/FastLED/FastLED / normalize_json_string

Method normalize_json_string

src/fl/stl/json.cpp.hpp:1301–1314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1299
1300
1301fl::string json::normalize_json_string(const char* jsonStr) {
1302 fl::string result;
1303 if (!jsonStr) {
1304 return result;
1305 }
1306 size_t len = strlen(jsonStr);
1307 for (size_t i = 0; i < len; ++i) {
1308 char c = jsonStr[i];
1309 if (c != ' ' && c != '\t' && c != '\n' && c != '\r') {
1310 result += c;
1311 }
1312 }
1313 return result;
1314}
1315
1316} // namespace fl

Callers

nothing calls this directly

Calls 1

strlenFunction · 0.85

Tested by

no test coverage detected