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

◆ normalize_json_string()

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

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

1336 {
1337 fl::string result;
1338 if (!jsonStr) {
1339 return result;
1340 }
1341 size_t len = strlen(jsonStr);
1342 for (size_t i = 0; i < len; ++i) {
1343 char c = jsonStr[i];
1344 if (c != ' ' && c != '\t' && c != '\n' && c != '\r') {
1345 result += c;
1346 }
1347 }
1348 return result;
1349}
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31
FASTLED_FORCE_INLINE size_t strlen(const char *s) FL_NO_EXCEPT
Definition cstring.h:56

References fl::FL_NO_EXCEPT, and fl::strlen().

Referenced by normalizeJsonString().

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