23 #include "mirtk/CommonExport.h" 25 #include "mirtk/String.h" 35 MIRTK_Common_EXPORT
extern const char PATHSEP;
85 #endif // MIRTK_Path_H string FileName(const char *, ExtensionMode=EXT_Default)
Get file name of file path excl. file extension.
Last file extension with possibly ".gz" removed first.
Last file extension only.
string BaseName(const char *)
Get file name of file path incl. file extension.
string Directory(const char *)
Get directory part of file path.
ExtensionMode
Enumeration of file path extension retrival modes.
Last file extension possibly plus ".gz".
string FilePrefix(const char *, ExtensionMode=EXT_Default)
Get file path excl. file extension.
All file extensions, i.e., everything after first dot (besides leading dot of hidden files on Unix) ...
MIRTK_Common_EXPORT const char PATHSEP
Path separating character.
string Extension(const char *, ExtensionMode=EXT_Default)
Get file name extension in lower case incl. leading dot ('.')
No part of the file is considered to be an extension.