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

Function getCharLiteral

lib/utils.h:189–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189inline static std::string getCharLiteral(const std::string &str)
190{
191 if (isCharLiteral(str))
192 return getStringCharLiteral(str, '\'');
193 return "";
194}
195
196inline static const char *getOrdinalText(int i)
197{

Callers 3

isCCharFunction · 0.85
isCMultiCharFunction · 0.85

Calls 2

getStringCharLiteralFunction · 0.85
isCharLiteralFunction · 0.70

Tested by

no test coverage detected