diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-20 09:29:56 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-20 09:29:56 +0200 |
commit | c23346c4cda9e0c2318c302dc6014d3fef53a6d3 (patch) | |
tree | 2a24d82d2445a8adbdf6e88ef22a5ce4d1957a19 /build/path.txx | |
parent | 8bd89cfca333e58f6990d7d168649dfc79878f31 (diff) |
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'}.
Diffstat (limited to 'build/path.txx')
-rw-r--r-- | build/path.txx | 56 |
1 files changed, 0 insertions, 56 deletions
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 <typename C> - basic_path<C> basic_path<C>:: - 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 <typename C> - const C* basic_path<C>:: - 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 C> typename basic_path<C>::string_type basic_path<C>:: |