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

Method concatStr

lib/token.cpp:239–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239void Token::concatStr(std::string const& b)
240{
241 mStr.pop_back();
242 mStr.append(getStringLiteral(b) + "\"");
243
244 if (isCChar() && isStringLiteral(b) && b[0] != '"') {
245 mStr.insert(0, b.substr(0, b.find('"')));
246 }
247 update_property_info();
248}
249
250std::string Token::strValue() const
251{

Calls 4

getStringLiteralFunction · 0.85
isCCharFunction · 0.85
isStringLiteralFunction · 0.70
findMethod · 0.45

Tested by

no test coverage detected