MCPcopy Create free account
hub / github.com/apache/qpid-proton / startsWith

Function startsWith

tests/include/catch.hpp:13821–13823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13819 }
13820
13821 bool startsWith( std::string const& s, std::string const& prefix ) {
13822 return s.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), s.begin());
13823 }
13824 bool startsWith( std::string const& s, char prefix ) {
13825 return !s.empty() && s[0] == prefix;
13826 }

Callers 12

matchMethod · 0.85
registerTestMethodsFunction · 0.85
makeCommandLineParserFunction · 0.85
listTestsNamesOnlyFunction · 0.85
matchMethod · 0.85
addMethod · 0.85
parseSpecialTagFunction · 0.85
makeTestCaseFunction · 0.85
extractClassNameFunction · 0.85
preprocessPatternMethod · 0.85
WildcardPatternMethod · 0.85
matchesMethod · 0.85

Calls 4

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

Tested by

no test coverage detected