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

Function isAbsolutePath

kdevplatform/util/path.cpp:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33inline bool isAbsolutePath(const QString& path)
34{
35 if (path.startsWith(QLatin1Char('/'))) {
36 return true; // Even on Windows: Potentially a path of a remote URL
37 }
38
39#ifdef Q_OS_WIN
40 return path.size() >= 2 && path.at(0).isLetter() && path.at(1) == QLatin1Char(':');
41#else
42 return false;
43#endif
44}
45
46}
47

Callers 1

PathMethod · 0.70

Calls 2

sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected