From 07f657754b0af656ee48c38540805fcec7cee27d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 5 Aug 2017 18:19:28 +0200 Subject: Implement path::normalized() predicate --- libbutl/path.ixx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libbutl/path.ixx') diff --git a/libbutl/path.ixx b/libbutl/path.ixx index c140d1e..7227b72 100644 --- a/libbutl/path.ixx +++ b/libbutl/path.ixx @@ -102,6 +102,14 @@ namespace butl template inline bool basic_path:: + normalized (bool sep) const + { + return (!sep || this->tsep_ <= 1) && + traits::normalized (this->path_, sep); + } + + template + inline bool basic_path:: root () const { return traits::root (this->path_); -- cgit v1.1