| 43 | namespace { |
| 44 | |
| 45 | std::string DirName(const std::string& path) { |
| 46 | const std::string::size_type pos = path.find_last_of("/\\"); |
| 47 | if (pos == std::string::npos) { |
| 48 | return ""; |
| 49 | } |
| 50 | return path.substr(0, pos); |
| 51 | } |
| 52 | |
| 53 | std::string JoinPath(const std::string& left, const std::string& right) { |
| 54 | if (left.empty()) { |
no test coverage detected