MCPcopy Create free account
hub / github.com/KDE/kdevelop / isIdentifierCharacter

Function isIdentifierCharacter

plugins/qmakemanager/parser/qmakelexer.cpp:16–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace QMake {
15
16bool isIdentifierCharacter(QChar* c, bool canLookAhead)
17{
18 return (c->isLetter() || c->isDigit() || c->unicode() == '_' || c->unicode() == '.' || c->unicode() == '-'
19 || c->unicode() == '$' || c->unicode() == '*'
20 || (canLookAhead && (c + 1)->unicode() != '=' && (c->unicode() == '+')));
21}
22
23bool isBeginIdentifierCharacter(QChar* c)
24{

Callers 1

nextTokenKindMethod · 0.85

Calls 1

isDigitMethod · 0.80

Tested by

no test coverage detected