| 595 | // compare -------------------------------------------------------------------------// |
| 596 | |
| 597 | BOOST_FILESYSTEM_DECL int path_algorithms::lex_compare_v3 |
| 598 | ( |
| 599 | path_detail::path_iterator first1, path_detail::path_iterator const& last1, |
| 600 | path_detail::path_iterator first2, path_detail::path_iterator const& last2 |
| 601 | ) |
| 602 | { |
| 603 | for (; first1 != last1 && first2 != last2;) |
| 604 | { |
| 605 | if (first1->native() < first2->native()) |
| 606 | return -1; |
| 607 | if (first2->native() < first1->native()) |
| 608 | return 1; |
| 609 | BOOST_ASSERT(first2->native() == first1->native()); |
| 610 | path_algorithms::increment_v3(first1); |
| 611 | path_algorithms::increment_v3(first2); |
| 612 | } |
| 613 | if (first1 == last1 && first2 == last2) |
| 614 | return 0; |
| 615 | return first1 == last1 ? -1 : 1; |
| 616 | } |
| 617 | |
| 618 | BOOST_FILESYSTEM_DECL int path_algorithms::lex_compare_v4 |
| 619 | ( |
nothing calls this directly
no outgoing calls
no test coverage detected