#include "callable_ref.hpp"
#include "config/basic.hpp"
#include "string_span.hpp"
#include <map>
#include <string>
#include <eagine/str_var_subst.inl>
Go to the source code of this file.
Classes | |
struct | eagine::variable_substitution_options |
Options for string variable substitution customization. More... | |
class | eagine::string_variable_map |
Class storing a map of variable names to values, doing string substitution. More... | |
Namespaces | |
eagine | |
Common code is placed in this namespace. | |
Functions | |
auto | eagine::substitute_variables_into (std::string &dst, string_view src, const callable_ref< optionally_valid< string_view >(string_view)> &translate, variable_substitution_options={}) -> std::string & |
Substitutes variable values by using translate, from src into dst. More... | |
auto | eagine::substitute_variables (string_view src, const callable_ref< optionally_valid< string_view >(string_view)> &translate, variable_substitution_options={}) -> std::string |
Substitutes variable values by using translate, from src. More... | |
auto | eagine::substitute_variables (const std::string &str, span< const std::string > strings, variable_substitution_options={}) -> std::string |
Substitutes variable values by using translate, from src into dst. More... | |
auto | eagine::substitute_variables (const std::string &str, const std::map< std::string, std::string, str_view_less > &dictionary, variable_substitution_options={}) -> std::string |
Substitutes variable values by using translate, from src. More... | |
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