Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
70
static bool isStringLiteral(const std::string &s)
71
{
72
return s.size() > 1 && (s[0]==
'\"'
) && (*s.rbegin()==
'\"'
);
73
}
74
75
static bool isCharLiteral(const std::string &s)
76
{
Callers
1
expandHashHash
Method · 0.70
Calls
1
size
Method · 0.45
Tested by
no test coverage detected