MCPcopy Create free account
hub / github.com/EQEmu/EQEmu / strreplace

Function strreplace

tests/cppunit/htmloutput.cpp:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 namespace
44 {
45 void
46 strreplace(string &value, char search, const string &replace)
47 {
48 string::size_type idx = 0;
49 while((idx = value.find(search, idx)) != string::npos)
50 {
51 value.replace(idx, 1, replace);
52 idx += replace.size();
53 }
54 }
55
56 string
57 escape(string value)

Callers 1

escapeFunction · 0.85

Calls 3

findMethod · 0.45
replaceMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected