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

Function isStringLiteral

externals/simplecpp/simplecpp.cpp:70–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70static bool isStringLiteral(const std::string &s)
71{
72 return s.size() > 1 && (s[0]=='\"') && (*s.rbegin()=='\"');
73}
74
75static bool isCharLiteral(const std::string &s)
76{

Callers 1

expandHashHashMethod · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected