FastLED 3.9.15
Loading...
Searching...
No Matches

◆ find_last_of() [4/4]

fl::size fl::string_view::find_last_of ( string_view sv,
fl::size pos = npos ) const
inline

Definition at line 295 of file string_view.h.

295 {
296 if (mSize == 0 || sv.empty()) return npos;
297 fl::size search_pos = (pos >= mSize || pos == npos) ? (mSize - 1) : pos;
298 for (fl::size i = search_pos + 1; i > 0; --i) {
299 for (fl::size j = 0; j < sv.mSize; ++j) {
300 if (mData[i - 1] == sv.mData[j]) {
301 return i - 1;
302 }
303 }
304 }
305 return npos;
306 }
uint8_t pos
Definition Blur.ino:11
const char * mData
static constexpr fl::size npos
Definition string_view.h:35

References string_view(), FL_NOEXCEPT, mData, mSize, npos, and pos.

Referenced by find_last_of(), and find_last_of().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: