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

Function getStringLiteral

lib/utils.h:182–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182inline static std::string getStringLiteral(const std::string &str)
183{
184 if (isStringLiteral(str))
185 return getStringCharLiteral(str, '"');
186 return "";
187}
188
189inline static std::string getCharLiteral(const std::string &str)
190{

Callers 5

concatStrMethod · 0.85
strValueMethod · 0.85
getStrLengthMethod · 0.85
getStrArraySizeMethod · 0.85

Calls 2

getStringCharLiteralFunction · 0.85
isStringLiteralFunction · 0.70

Tested by

no test coverage detected