FastLED 3.9.15
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 937 of file basic_string.cpp.hpp.

938 {
939 if (pos2 >= str.size()) return erase(pos, count);
940 fl::size actualCount2 = count2;
941 if (actualCount2 == npos || pos2 + actualCount2 > str.size()) {
942 actualCount2 = str.size() - pos2;
943 }
944 return replace(pos, count, str.c_str() + pos2, actualCount2);
945}
uint8_t pos
Definition Blur.ino:11
basic_string & erase(fl::size pos=0, fl::size count=npos) FL_NOEXCEPT
static constexpr fl::size npos
basic_string & replace(fl::size pos, fl::size count, const basic_string &str) FL_NOEXCEPT

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

+ Here is the call graph for this function: