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

Method lex_compare_v4

src/path.cpp:618–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616}
617
618BOOST_FILESYSTEM_DECL int path_algorithms::lex_compare_v4
619(
620 path_detail::path_iterator first1, path_detail::path_iterator const& last1,
621 path_detail::path_iterator first2, path_detail::path_iterator const& last2
622)
623{
624 for (; first1 != last1 && first2 != last2;)
625 {
626 if (first1->native() < first2->native())
627 return -1;
628 if (first2->native() < first1->native())
629 return 1;
630 BOOST_ASSERT(first2->native() == first1->native());
631 path_algorithms::increment_v4(first1);
632 path_algorithms::increment_v4(first2);
633 }
634 if (first1 == last1 && first2 == last2)
635 return 0;
636 return first1 == last1 ? -1 : 1;
637}
638
639BOOST_FILESYSTEM_DECL int path_algorithms::compare_v3(path const& left, path const& right)
640{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected