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

Function replace

extlibs/vili/src/utils.cpp:156–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 std::string replace(
157 std::string subject, const std::string& search, const std::string& replace)
158 {
159 size_t pos = 0;
160 while ((pos = subject.find(search, pos)) != std::string::npos)
161 {
162 subject.replace(pos, search.length(), replace);
163 pos += replace.length();
164 }
165 return subject;
166 }
167}

Callers 6

indentFunction · 0.70
nestMethod · 0.50
create_dirFunction · 0.50
filename_t dir_nameFunction · 0.50
exceptionMethod · 0.50
exceptionClass · 0.50

Calls 2

findMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected