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

◆ find_last_not_of() [1/4]

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

Definition at line 369 of file string_view.h.

369 {
370 if (mSize == 0) return npos;
371 fl::size search_pos = (pos >= mSize || pos == npos) ? (mSize - 1) : pos;
372 for (fl::size i = search_pos + 1; i > 0; --i) {
373 if (mData[i - 1] != ch) return i - 1;
374 }
375 return npos;
376 }
uint8_t pos
Definition Blur.ino:11
const char * mData
static constexpr fl::size npos
Definition string_view.h:35

References FL_NOEXCEPT, mData, mSize, npos, and pos.