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

◆ find_first_of() [4/4]

fl::size fl::string_view::find_first_of ( string_view sv,
fl::size pos = 0 ) const
inline

Definition at line 270 of file string_view.h.

270 {
271 if (pos >= mSize || sv.empty()) return npos;
272 for (fl::size i = pos; i < mSize; ++i) {
273 for (fl::size j = 0; j < sv.mSize; ++j) {
274 if (mData[i] == sv.mData[j]) {
275 return i;
276 }
277 }
278 }
279 return npos;
280 }
uint8_t pos
Definition Blur.ino:11
const char * mData
static constexpr fl::size npos
Definition string_view.h:35

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

Referenced by find_first_of(), and find_first_of().

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