MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / endsWith

Function endsWith

externals/simplecpp/simplecpp.cpp:148–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148static bool endsWith(const std::string &s, const std::string &e)
149{
150 return (s.size() >= e.size()) && std::equal(e.rbegin(), e.rend(), s.rbegin());
151}
152
153static bool sameline(const simplecpp::Token *tok1, const simplecpp::Token *tok2)
154{

Callers 2

readfileMethod · 0.70
simplifyPathFunction · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected