MCPcopy Create free account
hub / github.com/boostorg/filesystem / begin

Method begin

src/path.cpp:1403–1421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1401// path iterators ------------------------------------------------------------------//
1402
1403BOOST_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
1423BOOST_FILESYSTEM_DECL path::iterator path::end() const
1424{

Callers 15

mainFunction · 0.45
mainFunction · 0.45
canonical_commonFunction · 0.45
weakly_canonical_v3Function · 0.45
weakly_canonical_v4Function · 0.45
lexically_normal_v3Method · 0.45
lexically_normal_v4Method · 0.45
generic_path_v3Method · 0.45
make_preferred_v3Method · 0.45
append_v4Method · 0.45
compare_v3Method · 0.45
compare_v4Method · 0.45

Calls 2

first_elementFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected