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

Method root_name

src/path.cpp:288–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286 }
287
288 path path::root_name() const
289 {
290 iterator itr(begin());
291
292 return (itr.m_pos != m_pathname.size()
293 && (
294 (itr.m_element.m_pathname.size() > 1
295 && is_separator(itr.m_element.m_pathname[0])
296 && is_separator(itr.m_element.m_pathname[1])
297 )
298# ifdef BOOST_WINDOWS_API
299 || itr.m_element.m_pathname[itr.m_element.m_pathname.size()-1] == colon
300# endif
301 ))
302 ? itr.m_element
303 : path();
304 }
305
306 path path::root_directory() const
307 {

Callers 8

mainFunction · 0.80
test_decompositionsFunction · 0.80
directory_iterator_testsFunction · 0.80
canonical_basic_testsFunction · 0.80
platform_specific_testsFunction · 0.80
absoluteFunction · 0.80
cell_valueMethod · 0.80

Calls 2

is_separatorFunction · 0.85
pathFunction · 0.50

Tested by 5

test_decompositionsFunction · 0.64
directory_iterator_testsFunction · 0.64
canonical_basic_testsFunction · 0.64
platform_specific_testsFunction · 0.64