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

Function endsWith

tutorials/external/catch.hpp:11386–11388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11384 return !s.empty() && s[0] == prefix;
11385 }
11386 bool endsWith( std::string const& s, std::string const& suffix ) {
11387 return s.size() >= suffix.size() && std::equal(suffix.rbegin(), suffix.rend(), s.rbegin());
11388 }
11389 bool endsWith( std::string const& s, char suffix ) {
11390 return !s.empty() && s[s.size()-1] == suffix;
11391 }

Callers 4

matchMethod · 0.70
addMethod · 0.70
WildcardPatternMethod · 0.70
matchesMethod · 0.70

Calls 3

equalFunction · 0.85
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected