MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ReplaceAll

Function ReplaceAll

src/util/string.cpp:14–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13namespace util {
14void ReplaceAll(std::string& in_out, const std::string& search, const std::string& substitute)
15{
16 if (search.empty()) return;
17 in_out = std::regex_replace(in_out, std::regex(search), substitute);
18}
19
20LineReader::LineReader(std::span<const std::byte> buffer, size_t max_line_length)
21 : start(buffer.begin()), end(buffer.end()), max_line_length(max_line_length), it(buffer.begin()) {}

Callers 6

protocolinfo_cbMethod · 0.85
AppInitMainFunction · 0.85
AddToWalletMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
ShellEscapeFunction · 0.85
AlertNotifyFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68