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

Method find_root_path_size

src/path.cpp:734–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

732}
733
734BOOST_FILESYSTEM_DECL size_type path_algorithms::find_root_path_size(path const& p)
735{
736 size_type root_name_size = 0;
737 size_type root_dir_pos = find_root_directory_start(p.m_pathname.c_str(), p.m_pathname.size(), root_name_size);
738
739 size_type size = root_name_size;
740 if (root_dir_pos < p.m_pathname.size())
741 size = root_dir_pos + 1;
742
743 return size;
744}
745
746BOOST_FILESYSTEM_DECL path_algorithms::substring path_algorithms::find_root_directory(path const& p)
747{

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected