MCPcopy Create free account
hub / github.com/Kitware/CMake / ClassifyRoot

Function ClassifyRoot

Source/cmPathResolver.cxx:95–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93};
94
95Root ClassifyRoot(cm::string_view p)
96{
97#ifdef _WIN32
98 if (p.size() >= 2 && cmsysString_isalpha(p[0]) && p[1] == ':') {
99 return Root::Drive;
100 }
101 if (p.size() >= 3 && p[0] == '/' && p[1] == '/' && p[2] != '/') {
102 return Root::Network;
103 }
104#endif
105 if (!p.empty() && p[0] == '/') {
106 return Root::POSIX;
107 }
108 return Root::None;
109}
110
111class ImplBase
112{

Callers 3

ResolveRelativePathMethod · 0.85
ResolveSymlinkMethod · 0.85
ResolvePathMethod · 0.85

Calls 2

sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…