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

Function isWindowsDriveLetter

kdevplatform/util/path.cpp:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace {
22
23inline bool isWindowsDriveLetter(const QString& segment)
24{
25#ifdef Q_OS_WIN
26 return segment.size() == 2 && segment.at(0).isLetter() && segment.at(1) == QLatin1Char(':');
27#else
28 Q_UNUSED(segment);
29 return false;
30#endif
31}
32
33inline bool isAbsolutePath(const QString& path)
34{

Callers 2

cleanPathFunction · 0.85
parentMethod · 0.85

Calls 2

sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected