ENH: add fileName::isBackup() method

- previously part of POSIX.C
This commit is contained in:
Mark Olesen
2018-01-10 10:22:57 +01:00
parent c093095444
commit 2b0eaf2d38
7 changed files with 80 additions and 59 deletions

View File

@ -84,7 +84,11 @@ protected:
//- Find position of a file extension dot, return npos on failure.
// A wrapped version of find_last_of("./") with additional logic.
inline size_type find_ext() const;
inline static std::string::size_type find_ext(const std::string& str);
//- Find position of a file extension dot, return npos on failure.
// A wrapped version of find_last_of("./") with additional logic.
inline std::string::size_type find_ext() const;
//- Return file name extension (part after last .)
word ext() const;