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

Method make_preferred_v4

src/path.cpp:497–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497BOOST_FILESYSTEM_DECL void path_algorithms::make_preferred_v4(path& p)
498{
499 const size_type pathname_size = p.m_pathname.size();
500 if (pathname_size > 0u)
501 {
502 value_type* const pathname = &p.m_pathname[0];
503
504 // Avoid converting slashes in the root name
505 size_type root_name_size = 0u;
506 find_root_directory_start(pathname, pathname_size, root_name_size);
507
508 std::replace(pathname + root_name_size, pathname + pathname_size, L'/', L'\\');
509 }
510}
511
512#endif // defined(BOOST_FILESYSTEM_WINDOWS_API)
513

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45

Tested by

no test coverage detected