Go to the documentation of this file.
16 inline bool env_append(
const std::string& a_env,
const std::string& a_sep,
const std::vector<std::string>& a_vals){
17 std::string env_value;
19 if(!
get_env(a_env,env_value))
return false;
22 {std::vector<std::string>::const_iterator it;
23 for(it=a_vals.begin();it!=a_vals.end();++it) {
24 const std::string&
value = *it;
25 if(
value.empty())
continue;
27 if(env_value.size()) {
28 std::vector<std::string> ws;
29 words(env_value,a_sep,
false,ws);
32 if(!nums2s<std::string>(ws,env_value,a_sep)) {}
35 if(env_value.size()) env_value += a_sep;
39 if(!
put_env(a_env,env_value))
return false;
44 inline bool env_path_append(
const std::string& a_env,
const std::vector<std::string>& a_paths){
49 std::vector<std::string> v;