11 #ifndef ZYPP_REPO_VARIABLES_H_
12 #define ZYPP_REPO_VARIABLES_H_
60 typedef function<const std::string * ( const std::string & )>
VarRetriever;
64 #ifndef SWIG // Swig treats it as syntax error
108 std::string
operator()(
const std::string & value_r )
const;
109 #ifndef SWIG // Swig treats it as syntax error
111 std::string
operator()( std::string && value_r )
const;
base::ValueTransform< Url, repo::RepoVariablesUrlReplacer > RepoVariablesReplacedUrl
base::ContainerTransform< std::list< std::string >, repo::RepoVariablesStringReplacer > RepoVariablesReplacedStringList
std::string operator()(const std::string &value_r) const
Functor expanding repo variables in a string.
std::string operator()(const std::string &value_r, VarRetriever varRetriever_r) const
Return a copy of value_r with embedded variables expanded.
base::ContainerTransform< std::list< Url >, repo::RepoVariablesUrlReplacer > RepoVariablesReplacedUrlList
base::ValueTransform< std::string, repo::RepoVariablesStringReplacer > RepoVariablesReplacedString
Functor replacing repository variables.
function< const std::string *(const std::string &)> VarRetriever
Function taking a variable name and returning a pointer to the variable value or nullptr if unset...
Functor replacing repository variables.
Url operator()(const Url &url_r) const