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

◆ operator=() [1/4]

string & fl::string::operator= ( const char * str)

Definition at line 130 of file string.cpp.hpp.

130 {
131 // Match the string(const char*) ctor's contract: nullptr → empty.
132 if (str) {
133 copy(str, fl::strlen(str));
134 } else {
135 clear();
136 }
137 return *this;
138}
void copy(const char *str) FL_NO_EXCEPT
void clear(CRGB(&arr)[N]) FL_NO_EXCEPT
Definition clear.h:14
FASTLED_FORCE_INLINE size_t strlen(const char *s) FL_NO_EXCEPT
Definition cstring.h:56

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

+ Here is the call graph for this function: