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

Function endsWith

lib/utils.h:112–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112inline bool endsWith(const std::string &str, char c)
113{
114 return !str.empty() && str.back() == c;
115}
116
117inline bool endsWith(const std::string &str, const char end[], std::size_t endlen)
118{

Callers 15

loadMethod · 0.70
getAllocationTypeMethod · 0.70
isFunctionMethod · 0.70
FunctionMethod · 0.70
parsedeclFunction · 0.70
simplifyTemplateArgsMethod · 0.70
valueFlowTypeTraitsFunction · 0.70
setmsgMethod · 0.70
parseClangAstDumpMethod · 0.70
getReportMethod · 0.70

Calls 3

emptyMethod · 0.45
sizeMethod · 0.45
compareMethod · 0.45

Tested by 3

endsWithMethod · 0.40
errorlistMethod · 0.40
errorlistExclusiveMethod · 0.40