Wrap boost::replace_all

This commit is contained in:
MacroFake
2022-05-05 08:28:29 +02:00
parent c367736f85
commit fa2deae2a8
8 changed files with 22 additions and 19 deletions

View File

@@ -5,11 +5,11 @@
#ifndef BITCOIN_UTIL_STRING_H
#define BITCOIN_UTIL_STRING_H
#include <attributes.h>
#include <util/spanparsing.h>
#include <algorithm>
#include <array>
#include <cstdint>
#include <cstring>
#include <locale>
#include <sstream>
@@ -17,6 +17,8 @@
#include <string_view>
#include <vector>
void ReplaceAll(std::string& in_out, std::string_view search, std::string_view substitute);
[[nodiscard]] inline std::vector<std::string> SplitString(std::string_view str, char sep)
{
return spanparsing::Split<std::string>(str, sep);