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

Method find

tests/framework/src/doctest.cpp:676–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674}
675
676String::size_type String::find(char ch, size_type pos) const {
677 const char* begin = c_str();
678 const char* end = begin + size();
679 const char* it = begin + pos;
680 for (; it < end && *it != ch; it++);
681 if (it < end) { return static_cast<size_type>(it - begin); }
682 else { return npos; }
683}
684
685String::size_type String::rfind(char ch, size_type pos) const {
686 const char* begin = c_str();

Callers 15

__recursive_make_pathMethod · 0.45
replaceFunction · 0.45
SourceWatcherMethod · 0.45
executeMethod · 0.45
PollMethod · 0.45
executeMethod · 0.45
ApplyDeltaFunction · 0.45
PollMethod · 0.45
GenerateDeltaMethod · 0.45

Calls 2

c_strFunction · 0.50
sizeFunction · 0.50

Tested by

no test coverage detected