| 1401 | // path iterators ------------------------------------------------------------------// |
| 1402 | |
| 1403 | BOOST_FILESYSTEM_DECL path::iterator path::begin() const |
| 1404 | { |
| 1405 | iterator itr; |
| 1406 | itr.m_path_ptr = this; |
| 1407 | |
| 1408 | size_type element_size; |
| 1409 | first_element(m_pathname, itr.m_pos, element_size); |
| 1410 | |
| 1411 | if (element_size > 0) |
| 1412 | { |
| 1413 | itr.m_element = m_pathname.substr(itr.m_pos, element_size); |
| 1414 | #ifdef BOOST_FILESYSTEM_WINDOWS_API |
| 1415 | if (itr.m_element.m_pathname.size() == 1u && itr.m_element.m_pathname[0] == path::preferred_separator) |
| 1416 | itr.m_element.m_pathname[0] = path::separator; |
| 1417 | #endif |
| 1418 | } |
| 1419 | |
| 1420 | return itr; |
| 1421 | } |
| 1422 | |
| 1423 | BOOST_FILESYSTEM_DECL path::iterator path::end() const |
| 1424 | { |
no test coverage detected