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

◆ find_last_not_of() [4/4]

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

Definition at line 353 of file string_view.h.

353 {
354 if (mSize == 0) return npos;
355 fl::size search_pos = (pos >= mSize || pos == npos) ? (mSize - 1) : pos;
356 for (fl::size i = search_pos + 1; i > 0; --i) {
357 bool found = false;
358 for (fl::size j = 0; j < sv.mSize; ++j) {
359 if (mData[i - 1] == sv.mData[j]) {
360 found = true;
361 break;
362 }
363 }
364 if (!found) return i - 1;
365 }
366 return npos;
367 }
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_not_of(), and find_last_not_of().

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