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

Function endsWith

extern/Catch2/catch.hpp:13825–13827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13823 return !s.empty() && s[0] == prefix;
13824 }
13825 bool endsWith( std::string const& s, std::string const& suffix ) {
13826 return s.size() >= suffix.size() && std::equal(suffix.rbegin(), suffix.rend(), s.rbegin());
13827 }
13828 bool endsWith( std::string const& s, char suffix ) {
13829 return !s.empty() && s[s.size()-1] == suffix;
13830 }

Callers 4

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

Calls 5

rbeginMethod · 0.80
rendMethod · 0.80
equalFunction · 0.50
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected