From 08c7238ae6be49d6eb51099107538f5a4522f9dd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 3 Jun 2016 15:14:17 +0200 Subject: Remove canonicalization requirement from path_map --- butl/path | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'butl/path') diff --git a/butl/path b/butl/path index df76f99..c2bf682 100644 --- a/butl/path +++ b/butl/path @@ -132,8 +132,13 @@ namespace butl static int compare (string_type const& l, string_type const& r) { - size_type ln (l.size ()), rn (r.size ()), n (ln < rn ? ln : rn); - for (size_type i (0); i != n; ++i) + return compare (l.c_str (), l.size (), r.c_str (), r.size ()); + } + + static int + compare (const C* l, size_type ln, const C* r, size_t rn) + { + for (size_type i (0), n (ln < rn ? ln : rn); i != n; ++i) { #ifdef _WIN32 C lc (tolower (l[i])), rc (tolower (r[i])); -- cgit v1.1