- std::list<Replace>::const_iterator it = replace_list.begin();
-
- for (; it != replace_list.end(); it++)
- {
- std::string out = it->search_replace(vars, txt);
- if (!out.empty()) return out;
- }
- return "";
-}
-
-const std::string yf::HttpRewrite::Replace::search_replace(
- std::map<std::string, std::string> & vars,
- const std::string & txt) const
-{
- //exec regex against value
- boost::regex re(regex);
- boost::smatch what;