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

Function startsWith

lib/utils.h:96–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94};
95
96inline bool startsWith(const std::string& str, const char start[], std::size_t startlen)
97{
98 return str.compare(0, startlen, start) == 0;
99}
100
101template<std::size_t N>
102bool startsWith(const std::string& str, const char (&start)[N])

Callers 15

loadMethod · 0.70
getFunctionNameMethod · 0.70
isOperatorFunction · 0.70
findFunctionMethod · 0.70
isAnonymousFunction · 0.70
parseLineMethod · 0.70
parseCommentMethod · 0.70
parseFamilyRulesMethod · 0.70
ErrorMessageMethod · 0.70

Calls 1

compareMethod · 0.45

Tested by 15

startsWithMethod · 0.40
simplifyUsing10720Method · 0.40
nooptionsMethod · 0.40
nooptionsWithCfgMethod · 0.40
helpshortMethod · 0.40
helpshortExclusiveMethod · 0.40
helpshortWithCfgMethod · 0.40
helplongMethod · 0.40
helplongExclusiveMethod · 0.40
helplongWithCfgMethod · 0.40
docMethod · 0.40
docExclusiveMethod · 0.40