| 646 | namespace detail |
| 647 | { |
| 648 | BOOST_FILESYSTEM_DECL |
| 649 | int lex_compare(path::iterator first1, path::iterator last1, |
| 650 | path::iterator first2, path::iterator last2) |
| 651 | { |
| 652 | for (; first1 != last1 && first2 != last2;) |
| 653 | { |
| 654 | if (first1->native() < first2->native()) return -1; |
| 655 | if (first2->native() < first1->native()) return 1; |
| 656 | BOOST_ASSERT(first2->native() == first1->native()); |
| 657 | ++first1; |
| 658 | ++first2; |
| 659 | } |
| 660 | if (first1 == last1 && first2 == last2) |
| 661 | return 0; |
| 662 | return first1 == last1 ? -1 : 1; |
| 663 | } |
| 664 | } |
| 665 | |
| 666 | //--------------------------------------------------------------------------------------// |
no outgoing calls
no test coverage detected