MCPcopy Create free account
hub / github.com/FastLED/FastLED / find_first_not_of

Method find_first_not_of

src/fl/stl/string_view.h:321–334  ·  view source on GitHub ↗

Find first not of any character in set

Source from the content-addressed store, hash-verified

319
320 // Find first not of any character in set
321 fl::size find_first_not_of(string_view sv, fl::size pos = 0) const FL_NOEXCEPT {
322 if (pos >= mSize) return npos;
323 for (fl::size i = pos; i < mSize; ++i) {
324 bool found = false;
325 for (fl::size j = 0; j < sv.mSize; ++j) {
326 if (mData[i] == sv.mData[j]) {
327 found = true;
328 break;
329 }
330 }
331 if (!found) return i;
332 }
333 return npos;
334 }
335
336 fl::size find_first_not_of(char ch, fl::size pos = 0) const FL_NOEXCEPT {
337 if (pos >= mSize) return npos;

Callers

nothing calls this directly

Calls 1

string_viewClass · 0.70

Tested by

no test coverage detected