MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / endsWith

Function endsWith

extlibs/catch/include/catch/catch.hpp:13181–13183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13179 return !s.empty() && s[0] == prefix;
13180 }
13181 bool endsWith( std::string const& s, std::string const& suffix ) {
13182 return s.size() >= suffix.size() && std::equal(suffix.rbegin(), suffix.rend(), s.rbegin());
13183 }
13184 bool endsWith( std::string const& s, char suffix ) {
13185 return !s.empty() && s[s.size()-1] == suffix;
13186 }

Callers 4

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

Calls 4

sizeMethod · 0.45
rbeginMethod · 0.45
rendMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected