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

Function getStringCharLiteral

lib/utils.h:176–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176inline static std::string getStringCharLiteral(const std::string &str, char q)
177{
178 const std::size_t quotePos = str.find(q);
179 return str.substr(quotePos + 1U, str.size() - quotePos - 2U);
180}
181
182inline static std::string getStringLiteral(const std::string &str)
183{

Callers 2

getStringLiteralFunction · 0.85
getCharLiteralFunction · 0.85

Calls 2

findMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected