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

Method replace

src/CppUTest/SimpleString.cpp:384–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384void SimpleString::replace(char to, char with)
385{
386 size_t s = size();
387 for (size_t i = 0; i < s; i++) {
388 if (getBuffer()[i] == to) buffer_[i] = with;
389 }
390}
391
392void SimpleString::replace(const char* to, const char* with)
393{

Callers 7

parseArgumentsMethod · 0.80
encodeFileNameMethod · 0.80
encodeXmlTextMethod · 0.80
listTestGroupNamesMethod · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 5

encodeFileNameMethod · 0.64
encodeXmlTextMethod · 0.64
listTestGroupNamesMethod · 0.64
TESTFunction · 0.64