FastLED 3.9.15
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.

430 {
431 if (pos >= str.size()) {
432 clear();
433 return *this;
434 }
435 fl::size actualCount = count;
436 if (actualCount == npos || pos + actualCount > str.size()) {
437 actualCount = str.size() - pos;
438 }
439 copy(str.c_str() + pos, actualCount);
440 return *this;
441}
uint8_t pos
Definition Blur.ino:11
void copy(const char *str) FL_NOEXCEPT
static constexpr fl::size npos
Definition string.h:195
void clear(CRGB(&arr)[N])
Definition clear.h:12

References fl::basic_string::mLength.