FastLED 3.10.6
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 454 of file basic_string.cpp.hpp.

454 {
455 if (pos >= str.size()) {
456 clear();
457 return *this;
458 }
459 fl::size actualCount = count;
460 if (actualCount == npos || pos + actualCount > str.size()) {
461 actualCount = str.size() - pos;
462 }
463 copy(str.c_str() + pos, actualCount);
464 return *this;
465}
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(), c_str(), clear(), copy(), npos, pos, and size().

+ Here is the call graph for this function: