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

Method begin

src/path.cpp:672–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670//--------------------------------------------------------------------------------------//
671
672 path::iterator path::begin() const
673 {
674 iterator itr;
675 itr.m_path_ptr = this;
676 size_type element_size;
677 first_element(m_pathname, itr.m_pos, element_size);
678 itr.m_element = m_pathname.substr(itr.m_pos, element_size);
679 if (itr.m_element.m_pathname == preferred_separator_string)
680 itr.m_element.m_pathname = separator_string; // needed for Windows, harmless on POSIX
681 return itr;
682 }
683
684 path::iterator path::end() const
685 {

Callers 15

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
cpp_mainFunction · 0.80
check_nativeFunction · 0.80
test_constructorsFunction · 0.80
test_assignmentsFunction · 0.80
test_appendsFunction · 0.80
test_concatsFunction · 0.80
test_iteratorsFunction · 0.80
test_codecvt_argumentFunction · 0.80
convert<user_string>Function · 0.80

Calls 1

first_elementFunction · 0.85

Tested by 15

check_nativeFunction · 0.64
test_constructorsFunction · 0.64
test_assignmentsFunction · 0.64
test_appendsFunction · 0.64
test_concatsFunction · 0.64
test_iteratorsFunction · 0.64
test_codecvt_argumentFunction · 0.64
convert<user_string>Function · 0.64
convertFunction · 0.64
directory_iterator_testsFunction · 0.64
canonical_basic_testsFunction · 0.64
cpp_mainFunction · 0.64