MCPcopy Create free account
hub / github.com/apache/trafficserver / endsWith

Function endsWith

lib/catch2/catch.hpp:13823–13825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

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

Calls 2

sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected