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

◆ normalize_json_string()

fl::string fl::json::normalize_json_string ( const char * jsonStr)
static

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

1301 {
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}
size_t strlen(const char *s) FL_NOEXCEPT
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References fl::strlen().

Referenced by normalizeJsonString().

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