MCPcopy Create free account
hub / github.com/Rezonality/zep / string_replace_in_place

Function string_replace_in_place

src/mcommon/string/stringutils.cpp:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void string_replace_in_place(std::string& subject, const std::string& search, const std::string& replace)
41{
42 size_t pos = 0;
43 while ((pos = subject.find(search, pos)) != std::string::npos)
44 {
45 subject.replace(pos, search.length(), replace);
46 pos += replace.length();
47 }
48}
49
50#pragma warning(disable : 4996)
51//https://stackoverflow.com/questions/4804298/how-to-convert-wstring-into-string

Callers 2

SaveMethod · 0.85
NextTokenFunction · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected