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

Method lex_compare_v3

src/path.cpp:597–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595// compare -------------------------------------------------------------------------//
596
597BOOST_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
618BOOST_FILESYSTEM_DECL int path_algorithms::lex_compare_v4
619(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected