FastLED 3.9.15
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 430 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
void clear(bool freeMemory=false) FL_NOEXCEPT
static constexpr fl::size npos

References basic_string(), c_str(), clear(), copy(), npos, pos, and size().

+ Here is the call graph for this function: