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

Function endsWith

Source/ThirdParty/catch2/catch.hpp:13816–13818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13814 return !s.empty() && s[0] == prefix;
13815 }
13816 bool endsWith( std::string const& s, std::string const& suffix ) {
13817 return s.size() >= suffix.size() && std::equal(suffix.rbegin(), suffix.rend(), s.rbegin());
13818 }
13819 bool endsWith( std::string const& s, char suffix ) {
13820 return !s.empty() && s[s.size()-1] == suffix;
13821 }

Callers 4

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

Calls 4

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

Tested by

no test coverage detected