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

Method find

src/fl/stl/string_view.h:188–196  ·  view source on GitHub ↗

======= SEARCH OPERATIONS ======= Find character

Source from the content-addressed store, hash-verified

186 // ======= SEARCH OPERATIONS =======
187 // Find character
188 fl::size find(char ch, fl::size pos = 0) const FL_NOEXCEPT {
189 if (pos >= mSize) return npos;
190 for (fl::size i = pos; i < mSize; ++i) {
191 if (mData[i] == ch) {
192 return i;
193 }
194 }
195 return npos;
196 }
197
198 // Find substring
199 fl::size find(string_view sv, fl::size pos = 0) const FL_NOEXCEPT {

Callers

nothing calls this directly

Calls 3

findFunction · 0.70
string_viewClass · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected