| 495 | } |
| 496 | |
| 497 | BOOST_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 |
nothing calls this directly
no test coverage detected