FastLED 3.10.10
Loading...
Searching...
No Matches

◆ assign() [3/6]

basic_string & fl::basic_string::assign ( const basic_string & str,
fl::size pos,
fl::size count = npos )

Definition at line 468 of file basic_string.cpp.hpp.

468 {
469 if (pos >= str.size()) {
470 clear();
471 return *this;
472 }
473 fl::size actualCount = count;
474 if (actualCount == npos || pos + actualCount > str.size()) {
475 actualCount = str.size() - pos;
476 }
477 copy(str.c_str() + pos, actualCount);
478 return *this;
479}
uint8_t pos
Definition Blur.ino:11
void clear(bool freeMemory=false) FL_NO_EXCEPT
static constexpr fl::size npos
void copy(const char *str) FL_NO_EXCEPT

References basic_string(), fl::clear(), copy(), fl::FL_NO_EXCEPT, npos, and pos.

+ Here is the call graph for this function: