aboutsummaryrefslogtreecommitdiff
path: root/libbutl/path.mxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-04-28 16:34:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-04-28 16:34:57 +0200
commiteba3042910f063ae638a7e0134b79175978e2fca (patch)
treec17863f5f87f578cdb80736154e22a4f1d187205 /libbutl/path.mxx
parentb32579bad74e1b7f3a719fa49aad8566d20a6d2b (diff)
Move trim(), next_word() basic string utilities from build2
Diffstat (limited to 'libbutl/path.mxx')
-rw-r--r--libbutl/path.mxx3
1 files changed, 3 insertions, 0 deletions
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