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

Method find_root_directory

src/path.cpp:746–753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746BOOST_FILESYSTEM_DECL path_algorithms::substring path_algorithms::find_root_directory(path const& p)
747{
748 substring root_dir;
749 size_type root_name_size = 0;
750 root_dir.pos = find_root_directory_start(p.m_pathname.c_str(), p.m_pathname.size(), root_name_size);
751 root_dir.size = static_cast< std::size_t >(root_dir.pos < p.m_pathname.size());
752 return root_dir;
753}
754
755BOOST_FILESYSTEM_DECL path_algorithms::substring path_algorithms::find_relative_path(path const& p)
756{

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected