8 int lastInd = base.length()-1;
12 int pos = base.find_last_of(
'/',lastInd);
14 return base.substr(0,pos);
21 assert(path.length()>1);
23 for(i=1; i<path.length(); ++i)
28 std::string nextNode = path.substr(0,i);
29 std::string remainingPath = path.substr(i,path.length()-i);
31 return make_pair(nextNode,remainingPath);
std::pair< std::string, std::string > SplitString(std::string const &path)
Splits a string on the first forward slash.
std::string GetParentPath(std::string const &base)