MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / replace

Function replace

src/Core/Utils/StringUtils.cpp:98–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 }
97
98 std::string replace(
99 std::string subject, const std::string& search, const std::string& replace)
100 {
101 size_t pos = 0;
102 while ((pos = subject.find(search, pos)) != std::string::npos)
103 {
104 subject.replace(pos, search.length(), replace);
105 pos += replace.length();
106 }
107 return subject;
108 }
109
110 bool isSurroundedBy(const std::string& string, const std::string& bet)
111 {

Callers 5

useTriggerMethod · 0.50
loadMethod · 0.50
updateMethod · 0.50
loadImagesMethod · 0.50
executeMethod · 0.50

Calls 2

findMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected