FastLED 3.10.9
Loading...
Searching...
No Matches

◆ normalize_json_string()

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

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

1448 {
1449 fl::string result;
1450 if (!jsonStr) {
1451 return result;
1452 }
1453 size_t len = strlen(jsonStr);
1454 for (size_t i = 0; i < len; ++i) {
1455 char c = jsonStr[i];
1456 if (c != ' ' && c != '\t' && c != '\n' && c != '\r') {
1457 result += c;
1458 }
1459 }
1460 return result;
1461}
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: