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

Function splitFileAtExtension

kdevplatform/language/codegen/basicrefactoring.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36namespace {
37QPair<QString, QString> splitFileAtExtension(const QString& fileName)
38{
39 int idx = fileName.indexOf(QLatin1Char('.'));
40 if (idx == -1) {
41 return qMakePair(fileName, QString());
42 }
43 return qMakePair(fileName.left(idx), fileName.mid(idx));
44}
45}
46
47using namespace KDevelop;

Callers 2

newFileNameMethod · 0.85
shouldRenameFileMethod · 0.85

Calls 3

midMethod · 0.80
QStringClass · 0.70
indexOfMethod · 0.45

Tested by

no test coverage detected