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

◆ rfind() [1/4]

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

Definition at line 225 of file string_view.h.

225 {
226 if (mSize == 0) return npos;
227 fl::size search_pos = (pos >= mSize || pos == npos) ? (mSize - 1) : pos;
228 for (fl::size i = search_pos + 1; i > 0; --i) {
229 if (mData[i - 1] == ch) {
230 return i - 1;
231 }
232 }
233 return npos;
234 }
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.

Referenced by find_last_of(), rfind(), and rfind().

+ Here is the caller graph for this function: