#include "string_span.hpp"
Go to the source code of this file.
Namespaces | |
eagine | |
Common code is placed in this namespace. | |
Functions | |
template<typename C , typename T , typename A , typename P1 , typename P2 , typename S1 , typename S2 > | |
auto | eagine::string_replace (std::basic_string< C, T, A > &str, memory::basic_span< const C, P1, S1 > from, memory::basic_span< const C, P2, S2 > to) -> std::basic_string< C, T, A > & |
Replaces all occurrences of from with to in the given string. | |
template<typename C , typename T , typename A , typename P1 , typename P2 , typename S1 , typename S2 > | |
auto | eagine::string_replace (std::basic_string< C, T, A > &str, span< const std::tuple< basic_string_span< const C, P1, S1 >, basic_string_span< const C, P2, S2 >>> dict) -> std::basic_string< C, T, A > & |
Replaces all occurrences of the string specifed in the dictionary. | |
Copyright Matus Chochlik. Distributed under the Boost Software License, Version 1.0. See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt