FastLED
3.10.6
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
.
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
}
pos
uint8_t pos
Definition
Blur.ino:11
fl::string::npos
static constexpr fl::size npos
Definition
string.h:204
fl::string::copy
void copy(const char *str) FL_NO_EXCEPT
Definition
basic_string.cpp.hpp:368
fl::clear
void clear(CRGB(&arr)[N])
Definition
clear.h:12
fl
string
Generated on Sun Oct 4 2026 23:09:10 for FastLED by
1.13.2