void vfs::Path::splitFirst(vfs::Path &rsFirst, vfs::Path &rsTail) const { pathSplitFirst(_path, rsFirst._path, rsTail._path, _sep.first, _sep.last); getFirstLastSeparator(rsFirst.c_str(), rsFirst._sep.first, rsFirst._sep.last); getFirstLastSeparator(rsTail.c_str(), rsTail._sep.first, rsTail._sep.last); // no need to check, as the original path is already checked //rPath.doCheck(); //rFile.doCheck(); }
bool operator==(vfs::Path const& p1, const vfs::String::char_t* p2) { return vfs::StrCmp::Equal(p1.c_str(), p2); }
bool operator==(vfs::Path const& p1, vfs::String::str_t const& p2) { return vfs::StrCmp::Equal(p1.c_str(), p2); }