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

Function isCChar

lib/token.h:813–816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811 }
812
813 bool isCChar() const {
814 return (((mTokType == eString) && isPrefixStringCharLiteral(mStr, '"', "")) ||
815 ((mTokType == eChar) && isPrefixStringCharLiteral(mStr, '\'', "") && (replaceEscapeSequences(getCharLiteral(mStr)).size() == 1)));
816 }
817
818 bool isCMultiChar() const {
819 return (mTokType == eChar) && isPrefixStringCharLiteral(mStr, '\'', "") && (replaceEscapeSequences(getCharLiteral(mStr)).size() > 1);

Callers 1

concatStrMethod · 0.85

Calls 4

replaceEscapeSequencesFunction · 0.85
getCharLiteralFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected