From c23346c4cda9e0c2318c302dc6014d3fef53a6d3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Feb 2015 09:29:56 +0200 Subject: Rework extension handling logic We no longer support hxx{vector.}. Rather, the target type can decide, e.g., based on a config variable, whether to append an extension. Also, in the future we may support a syntax to specify that this is a complete name, e.g., hxx{'vector'}. --- build/path.txx | 56 -------------------------------------------------------- 1 file changed, 56 deletions(-) (limited to 'build/path.txx') diff --git a/build/path.txx b/build/path.txx index f576870..881dc17 100644 --- a/build/path.txx +++ b/build/path.txx @@ -34,62 +34,6 @@ namespace build : basic_path (); } - template - basic_path basic_path:: - base () const - { - size_type i (path_.size ()); - - for (; i > 0; --i) - { - if (path_[i - 1] == '.') - break; - - if (traits::is_separator (path_[i - 1])) - { - i = 0; - break; - } - } - - // Weed out paths like ".txt" and "/.txt" - // - if (i > 1 && !traits::is_separator (path_[i - 2])) - { - return basic_path (path_.c_str (), i - 1); - } - else - return *this; - } - - template - const C* basic_path:: - extension () const - { - size_type i (path_.size ()); - - for (; i > 0; --i) - { - if (path_[i - 1] == '.') - break; - - if (traits::is_separator (path_[i - 1])) - { - i = 0; - break; - } - } - - // Weed out paths like ".txt" and "/.txt" - // - if (i > 1 && !traits::is_separator (path_[i - 2])) - { - return path_.c_str () + i; - } - else - return nullptr; - } - #ifdef _WIN32 template typename basic_path::string_type basic_path:: -- cgit v1.1