| 303 | } |
| 304 | |
| 305 | std::string PlatformFileSystem::remap(std::string_view what) { |
| 306 | for (const Mapping &mapping : m_mappings) { |
| 307 | if (mapping.m_what == what) { |
| 308 | return mapping.m_with; |
| 309 | } else if ((mapping.m_what.length() < what.length()) && |
| 310 | (what.compare(0, mapping.m_what.length(), mapping.m_what) == |
| 311 | 0)) { |
| 312 | return std::string(mapping.m_with) |
| 313 | .append(what.substr(mapping.m_what.length())); |
| 314 | } |
| 315 | } |
| 316 | return std::string(what); |
| 317 | } |
| 318 | |
| 319 | bool PlatformFileSystem::addWorkingDirectoryCacheEntry( |
| 320 | std::string_view prefix, std::string_view suffix) { |
no test coverage detected