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

Function generateIdentifier

plugins/appwizard/appwizardplugin.cpp:214–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214QString generateIdentifier( const QString& appname )
215{
216 QString tmp = appname;
217 static const QRegularExpression re(QStringLiteral("[^\\w]"));
218 return tmp.replace(re, QStringLiteral("_"));
219}
220
221} // end anonymous namespace
222

Callers 1

createProjectMethod · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected