| 313 | } |
| 314 | |
| 315 | path path::relative_path() const |
| 316 | { |
| 317 | iterator itr(begin()); |
| 318 | |
| 319 | for (; itr.m_pos != m_pathname.size() |
| 320 | && (is_separator(itr.m_element.m_pathname[0]) |
| 321 | # ifdef BOOST_WINDOWS_API |
| 322 | || itr.m_element.m_pathname[itr.m_element.m_pathname.size()-1] == colon |
| 323 | # endif |
| 324 | ); ++itr) {} |
| 325 | |
| 326 | return path(m_pathname.c_str() + itr.m_pos); |
| 327 | } |
| 328 | |
| 329 | string_type::size_type path::m_parent_path_end() const |
| 330 | { |