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

◆ from_char()

static json fl::json::from_char ( char c)
inlinestatic

Definition at line 166 of file json.h.

168 {
169 json result;
170 auto value = fl::make_shared<json_value>(fl::string(1, c));
171 //FL_WARN("Created json_value with string: " << value->is_string() << ", int: " << value->is_int());
172 result.mValue = value;
173 //FL_WARN("json has string: " << result.is_string() << ", int: " << result.is_int());
json() FL_NOEXCEPT
Definition json.h:134
T value() const FL_NOEXCEPT
Definition json.h:336
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
Definition shared_ptr.h:414
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References json(), FL_NOEXCEPT, fl::make_shared(), and value().

+ Here is the call graph for this function: