MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / startsWith

Function startsWith

tests/catch.hpp:11112–11114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11110 }
11111
11112 bool startsWith( std::string const& s, std::string const& prefix ) {
11113 return s.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), s.begin());
11114 }
11115 bool startsWith( std::string const& s, char prefix ) {
11116 return !s.empty() && s[0] == prefix;
11117 }

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 4

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

Tested by

no test coverage detected