Class Scine::Utils::NativeFilenames¶
-
class
NativeFilenames
¶ This class contains utility functions for storing file paths in strings, and cares for cross-platform issues. Hides the use of Boost::filesystem.
Public Static Functions
-
template<typename
T
, typenameU
>
std::stringcombinePathSegments
(const T &l, const U &r)¶ concatenates path segments by adding a separator if necessary.
-
template<typename
T
, typename ...Ts
>
std::stringcombinePathSegments
(const T &l, const Ts&... r)¶ Concatenates multiple path segments contained in the argument pack.
-
static std::string
removeTrailingSeparator
(const std::string &path)¶ remove the directory separator at the end of the string if present.
-
static std::string
addTrailingSeparator
(const std::string &path)¶ add a directory separator at the end of the string if none is present.
-
static std::string
removeExtension
(const std::string &filename)¶ removes the extension from the file called filename.
-
template<typename