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

Function getRelativePath

lib/utils/StringUtil.cpp:39–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39std::string getRelativePath(std::string path, std::string projectBuildPath) {
40 return regex(path, "^" + projectBuildPath + "/?(.+)", 1);
41}
42
43std::string replaceString(std::string OriginalStr, std::string FromStr,
44 std::string ToStr) {

Callers 5

rebasePathFunction · 0.85
SourceAnalyzerImplMethod · 0.85
generateMethod · 0.85
checkMethod · 0.85
TESTFunction · 0.85

Calls 1

regexFunction · 0.85

Tested by 1

TESTFunction · 0.68