diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-04-28 16:34:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-04-28 16:34:57 +0200 |
commit | eba3042910f063ae638a7e0134b79175978e2fca (patch) | |
tree | c17863f5f87f578cdb80736154e22a4f1d187205 /libbutl/path.mxx | |
parent | b32579bad74e1b7f3a719fa49aad8566d20a6d2b (diff) |
Move trim(), next_word() basic string utilities from build2
Diffstat (limited to 'libbutl/path.mxx')
-rw-r--r-- | libbutl/path.mxx | 3 |
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 |