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

Function endsWith

tests/catch.hpp:11118–11120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11116 return !s.empty() && s[0] == prefix;
11117 }
11118 bool endsWith( std::string const& s, std::string const& suffix ) {
11119 return s.size() >= suffix.size() && std::equal(suffix.rbegin(), suffix.rend(), s.rbegin());
11120 }
11121 bool endsWith( std::string const& s, char suffix ) {
11122 return !s.empty() && s[s.size()-1] == suffix;
11123 }

Callers 4

matchMethod · 0.85
addMethod · 0.85
WildcardPatternMethod · 0.85
matchesMethod · 0.85

Calls 2

sizeMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected