| 82 | } |
| 83 | |
| 84 | std::string JoinPath(const std::string& root, const std::string& resource) { |
| 85 | if (root.empty()) { |
| 86 | return resource; |
| 87 | } |
| 88 | if (IsSeparator(root.back())) { |
| 89 | return root + resource; |
| 90 | } |
| 91 | return root + "/" + resource; |
| 92 | } |
| 93 | |
| 94 | std::string NormalizeResourceName(std::string_view resourceName) { |
| 95 | std::string normalized(resourceName); |
no test coverage detected