2 #include <boost/regex.hpp> 7 char* t = getenv(what[1].str().c_str());
27 if(In.find(
"$(") == std::string::npos)
29 return boost::regex_replace(In, boost::regex(
"\\$\\((\\w+)\\)"),
std::string replace_env(boost::smatch const &what)
std::string environment_substitute(const std::string &In)
This routine takes a string that may have one or more strings in it like .