MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / startsWith

Function startsWith

extlibs/catch/include/catch/catch.hpp:13175–13177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13173 }
13174
13175 bool startsWith( std::string const& s, std::string const& prefix ) {
13176 return s.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), s.begin());
13177 }
13178 bool startsWith( std::string const& s, char prefix ) {
13179 return !s.empty() && s[0] == prefix;
13180 }

Callers 11

registerTestMethodsFunction · 0.70
addPatternMethod · 0.70
makeCommandLineParserFunction · 0.70
listTestsNamesOnlyFunction · 0.70
matchMethod · 0.70
addMethod · 0.70
parseSpecialTagFunction · 0.70
makeTestCaseFunction · 0.70
extractClassNameFunction · 0.70
WildcardPatternMethod · 0.70
matchesMethod · 0.70

Calls 4

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected