diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-03-06 10:24:11 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-03-06 10:24:11 +0100 |
commit | 4538829ab86b5a1cd4e845e7eab165029c9d6d46 (patch) | |
tree | bbadf39aed0610c8f8f7b41fefff47773b8ac205 /libcutl/cutl/fs/path.ixx | |
parent | 23d41842168ac1a1580111b9c5c73500ceee3d57 (diff) | |
parent | aad5ad9bf0c02aa4e79bc6b7d6c934612fff4026 (diff) |
Update upstream source from tag 'upstream/4.2.0'
Update to upstream version '4.2.0'
with Debian dir 1b38df7bbcf313223de3c50107ac0255090fe647
Diffstat (limited to 'libcutl/cutl/fs/path.ixx')
-rw-r--r-- | libcutl/cutl/fs/path.ixx | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/libcutl/cutl/fs/path.ixx b/libcutl/cutl/fs/path.ixx deleted file mode 100644 index 80d3bb3..0000000 --- a/libcutl/cutl/fs/path.ixx +++ /dev/null @@ -1,71 +0,0 @@ -// file : cutl/fs/path.ixx -// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC -// license : MIT; see accompanying LICENSE file - -#ifdef _WIN32 -# include <cctype> // std::tolower -# include <cwctype> // std::towlower -#endif - -namespace cutl -{ - namespace fs - { - template <typename C> - inline bool basic_path<C>:: - absolute () const - { -#ifdef _WIN32 - return path_.size () > 1 && path_[1] == ':'; -#else - return !path_.empty () && traits::is_separator (path_[0]); -#endif - } - - template <typename C> - inline bool basic_path<C>:: - root () const - { -#ifdef _WIN32 - return path_.size () == 2 && path_[1] == ':'; -#else - return path_.size () == 1 && traits::is_separator (path_[0]); -#endif - } - - template <typename C> - inline basic_path<C>& basic_path<C>:: - complete () - { - if (relative ()) - *this = current () / *this; - - return *this; - } - -#ifndef _WIN32 - template <typename C> - inline typename basic_path<C>::string_type basic_path<C>:: - posix_string () const - { - return string (); - } -#endif - -#ifdef _WIN32 - template <> - inline char basic_path<char>:: - tolower (char c) - { - return std::tolower (c); - } - - template <> - inline wchar_t basic_path<wchar_t>:: - tolower (wchar_t c) - { - return std::towlower (c); - } -#endif - } -} |