mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-13 11:25:02 -05:00
![fanquake](/assets/img/avatar_default.png)
These files change infrequently, and not much header shuffling is required. We don't add everything in src/util/ yet, because IWYU makes some dubious suggestions, which I'm going to follow up with upstream.
14 lines
429 B
C++
14 lines
429 B
C++
// Copyright (c) 2019 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#include <util/string.h>
|
|
|
|
#include <boost/algorithm/string/replace.hpp>
|
|
|
|
#include <string>
|
|
|
|
void ReplaceAll(std::string& in_out, std::string_view search, std::string_view substitute)
|
|
{
|
|
boost::replace_all(in_out, search, substitute);
|
|
}
|