From eba3042910f063ae638a7e0134b79175978e2fca Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 28 Apr 2018 16:34:57 +0200 Subject: Move trim(), next_word() basic string utilities from build2 --- libbutl/path.mxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libbutl/path.mxx') diff --git a/libbutl/path.mxx b/libbutl/path.mxx index ab85a0f..5b9bec1 100644 --- a/libbutl/path.mxx +++ b/libbutl/path.mxx @@ -343,6 +343,9 @@ LIBBUTL_MODEXPORT namespace butl static int compare (const C* l, size_type ln, const C* r, size_type rn) { + //@@ TODO: would be nice to ignore difference in trailing slashes + // (except for POSIX root). + for (size_type i (0), n (ln < rn ? ln : rn); i != n; ++i) { #ifdef _WIN32 -- cgit v1.1