3 * Copyright (c) 2003 Dr John Maddock
4 * Use, modification and distribution is subject to the
5 * Boost Software License, Version 1.0. (See accompanying file
6 * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 * This file implements path comparisons
12 #include "bcp_imp.hpp"
15 #ifdef BOOST_NO_STDC_NAMESPACE
22 int compare_paths(const fs::path
& a
, const fs::path
& b
)
24 const std::string
& as
= a
.string();
25 const std::string
& bs
= b
.string();
26 std::string::const_iterator i
, j
, k
, l
;
35 int r
= std::tolower(*i
) - std::tolower(*k
);
40 return (k
== l
) ? 0 : 1;