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

Method find

src/fl/stl/basic_string.cpp.hpp:518–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516// ======= FIND =======
517
518fl::size basic_string::find(const char& value) const {
519 for (fl::size i = 0; i < mLength; ++i) {
520 if (c_str()[i] == value) return i;
521 }
522 return npos;
523}
524
525fl::size basic_string::find(const char* substr) const {
526 if (!substr) return npos;

Callers

nothing calls this directly

Calls 3

strstrFunction · 0.85
findFunction · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected