| 71 | } |
| 72 | |
| 73 | PathName ParsedPath::subPath(FB_SIZE_T n) const |
| 74 | { |
| 75 | PathName rc; |
| 76 | #ifndef WIN_NT |
| 77 | // Code in DirectoryList::initialize() ensured that the path is absolute |
| 78 | rc = PathUtils::dir_sep; |
| 79 | #endif |
| 80 | for (FB_SIZE_T i = 0; i < n; i++) |
| 81 | { |
| 82 | PathName newpath; |
| 83 | PathUtils::concatPath(newpath, rc, (*this)[i]); |
| 84 | rc = newpath; |
| 85 | } |
| 86 | |
| 87 | return rc; |
| 88 | } |
| 89 | |
| 90 | ParsedPath::operator PathName() const |
| 91 | { |