| 51 | } |
| 52 | |
| 53 | std::string JoinPath(const std::string& left, const std::string& right) { |
| 54 | if (left.empty()) { |
| 55 | return right; |
| 56 | } |
| 57 | const char last = left.back(); |
| 58 | if (last == '/' || last == '\\') { |
| 59 | return left + right; |
| 60 | } |
| 61 | return left + "/" + right; |
| 62 | } |
| 63 | |
| 64 | void AppendUnique(std::vector<std::string>& values, const std::string& value) { |
| 65 | if (value.empty()) { |
no test coverage detected