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

Function lex_compare

src/path.cpp:648–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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//--------------------------------------------------------------------------------------//

Callers 2

compareMethod · 0.85
lexicographical_compareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected