MCPcopy Create free account
hub / github.com/Profactor/cv-plot / endsWith

Function endsWith

CvPlot/ext/catch2/inc/catch.hpp:13586–13588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13584 return !s.empty() && s[0] == prefix;
13585 }
13586 bool endsWith( std::string const& s, std::string const& suffix ) {
13587 return s.size() >= suffix.size() && std::equal(suffix.rbegin(), suffix.rend(), s.rbegin());
13588 }
13589 bool endsWith( std::string const& s, char suffix ) {
13590 return !s.empty() && s[s.size()-1] == suffix;
13591 }

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