19void getPathName(
const string &path,
const string &base, vector<string> &pathnames)
24 uint size = path.size();
26 pathnames.push_back(base);
28 for (
uint pos = 0, sep = path.find(Config::PATH_SEP, pos); pos < size;
29 pos = sep + 1, sep = path.find(Config::PATH_SEP, pos))
31 if (sep ==
uint(string::npos)) {
35 dir = path.substr(pos, sep - pos);
39 res = string(cleaned);
42 res += Config::DIR_SEP + base;
45 pathnames.push_back(res);