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

Function startsWith

unittests/catch.hpp:9573–9575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9571namespace Catch {
9572
9573 bool startsWith( std::string const& s, std::string const& prefix ) {
9574 return s.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), s.begin());
9575 }
9576 bool startsWith( std::string const& s, char prefix ) {
9577 return !s.empty() && s[0] == prefix;
9578 }

Callers 10

registerTestMethodsFunction · 0.85
addPatternMethod · 0.85
makeCommandLineParserFunction · 0.85
listTestsNamesOnlyFunction · 0.85
matchMethod · 0.85
addMethod · 0.85
parseSpecialTagFunction · 0.85
extractClassNameFunction · 0.85
WildcardPatternMethod · 0.85
matchesMethod · 0.85

Calls 5

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

Tested by

no test coverage detected