MCPcopy Create free account
hub / github.com/RenderKit/embree / startsWith

Function startsWith

tutorials/external/catch.hpp:11380–11382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11378 }
11379
11380 bool startsWith( std::string const& s, std::string const& prefix ) {
11381 return s.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), s.begin());
11382 }
11383 bool startsWith( std::string const& s, char prefix ) {
11384 return !s.empty() && s[0] == prefix;
11385 }

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 5

equalFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected