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

Function replaceString

lib/utils/StringUtil.cpp:43–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43std::string replaceString(std::string OriginalStr, std::string FromStr,
44 std::string ToStr) {
45 auto replaceIdx = OriginalStr.find(FromStr);
46 if (replaceIdx == std::string::npos)
47 return OriginalStr;
48 else {
49 return OriginalStr.replace(replaceIdx, FromStr.size(), ToStr);
50 }
51}
52
53std::string getDemangledName(std::string MangledName) {
54

Callers 1

getDemangledNameFunction · 0.85

Calls 2

sizeMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected