| 90 | } |
| 91 | |
| 92 | std::string lowerPathIfInsensitive(const std::string &path) { |
| 93 | #if defined(_WIN32) |
| 94 | std::string ret = path; |
| 95 | for (char &c : ret) |
| 96 | c = tolower(c); |
| 97 | return ret; |
| 98 | #else |
| 99 | return path; |
| 100 | #endif |
| 101 | } |
| 102 | |
| 103 | void ensureEndsInSlash(std::string &path) { |
| 104 | if (path.empty() || path[path.size() - 1] != '/') |
no outgoing calls
no test coverage detected