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
}
pos
uint8_t pos
Definition
Blur.ino:11
fl::string::copy
void copy(const char *str) FL_NOEXCEPT
Definition
basic_string.cpp.hpp:344
fl::string::npos
static constexpr fl::size npos
Definition
string.h:195
fl::clear
void clear(CRGB(&arr)[N])
Definition
clear.h:12
References
fl::basic_string::mLength
.
fl
string
Generated on Tue Jun 16 2026 00:07:07 for FastLED by
1.13.2