MCPcopy Create free account
hub / github.com/Samsung/UTopia / rebasePath

Function rebasePath

lib/utils/FileUtil.cpp:175–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175std::string rebasePath(const std::string &Path, const std::string &OrgBase,
176 const std::string &NewBase) {
177 auto LeafPath = getRelativePath(Path, OrgBase);
178 assert(!LeafPath.empty() && "Invalid base path");
179 return fs::path(NewBase) / LeafPath;
180}
181
182} // namespace util
183

Callers 2

genModifiedSrcsMethod · 0.85
TESTFunction · 0.85

Calls 2

getRelativePathFunction · 0.85
emptyMethod · 0.80

Tested by 1

TESTFunction · 0.68