MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / remap

Method remap

src/Common/PlatformFileSystem.cpp:305–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305std::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
319bool PlatformFileSystem::addWorkingDirectoryCacheEntry(
320 std::string_view prefix, std::string_view suffix) {

Callers 9

restoreErrorsMethod · 0.80
restoreVObjectsMethod · 0.80
checkCacheIsValidMethod · 0.80
restoreMacrosMethod · 0.80
restoreTimeInfosMethod · 0.80
restoreDesignElementsMethod · 0.80
checkCacheIsValidMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected