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

◆ assign() [3/7]

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

Definition at line 231 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
static constexpr fl::size npos
Definition string.h:204
void copy(const char *str) FL_NO_EXCEPT
void clear(CRGB(&arr)[N]) FL_NO_EXCEPT
Definition clear.h:14