6 #include "pinocchio/utils/file-explorer.hpp"
12 std::vector<std::string> & list_of_paths,
13 const std::string & delimiter)
15 const char * env_var_value = std::getenv(env_var_name.c_str());
17 if(env_var_value != NULL)
19 std::string policyStr(env_var_value);
21 policyStr += std::string(
":");
22 size_t lastOffset = 0;
26 size_t offset = policyStr.find_first_of(delimiter, lastOffset);
27 if (offset < policyStr.size())
28 list_of_paths.push_back(policyStr.substr(lastOffset, offset - lastOffset));
29 if (offset == std::string::npos)
32 lastOffset = offset + 1;
38 const std::string & delimiter)
40 std::vector<std::string> list_of_paths;
47 std::vector<std::string> list_of_paths;