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

Method relative_path

src/path.cpp:315–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313 }
314
315 path path::relative_path() const
316 {
317 iterator itr(begin());
318
319 for (; itr.m_pos != m_pathname.size()
320 && (is_separator(itr.m_element.m_pathname[0])
321# ifdef BOOST_WINDOWS_API
322 || itr.m_element.m_pathname[itr.m_element.m_pathname.size()-1] == colon
323# endif
324 ); ++itr) {}
325
326 return path(m_pathname.c_str() + itr.m_pos);
327 }
328
329 string_type::size_type path::m_parent_path_end() const
330 {

Callers 5

mainFunction · 0.80
test_decompositionsFunction · 0.80
absoluteFunction · 0.80
cell_valueMethod · 0.80

Calls 2

is_separatorFunction · 0.85
pathFunction · 0.50

Tested by 2

test_decompositionsFunction · 0.64