| 93 | }; |
| 94 | |
| 95 | Root 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 | |
| 111 | class ImplBase |
| 112 | { |
no test coverage detected
searching dependent graphs…