FastLED 3.10.6
Loading...
Searching...
No Matches

◆ replace() [2/5]

basic_string & fl::basic_string::replace ( fl::size pos,
fl::size count,
const basic_string & str,
fl::size pos2,
fl::size count2 = npos )

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

962 {
963 if (pos2 >= str.size()) return erase(pos, count);
964 fl::size actualCount2 = count2;
965 if (actualCount2 == npos || pos2 + actualCount2 > str.size()) {
966 actualCount2 = str.size() - pos2;
967 }
968 return replace(pos, count, str.c_str() + pos2, actualCount2);
969}
uint8_t pos
Definition Blur.ino:11
basic_string & replace(fl::size pos, fl::size count, const basic_string &str) FL_NO_EXCEPT
static constexpr fl::size npos
basic_string & erase(fl::size pos=0, fl::size count=npos) FL_NO_EXCEPT

References basic_string(), c_str(), erase(), npos, pos, replace(), and size().

+ Here is the call graph for this function: