diff options
Diffstat (limited to 'dviware/dvisvgm/src/FilePath.hpp')
-rw-r--r-- | dviware/dvisvgm/src/FilePath.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dviware/dvisvgm/src/FilePath.hpp b/dviware/dvisvgm/src/FilePath.hpp index abcea4a9dc..32a9be6814 100644 --- a/dviware/dvisvgm/src/FilePath.hpp +++ b/dviware/dvisvgm/src/FilePath.hpp @@ -48,6 +48,7 @@ class FilePath { void set (const std::string &path, bool isfile, const std::string ¤t_dir); std::string absolute (bool with_filename=true) const; std::string relative (std::string reldir="", bool with_filename=true) const; + std::string relative (const FilePath &filepath, bool with_filename=true) const; std::string shorterAbsoluteOrRelative (std::string reldir="", bool with_filename=true) const; std::string basename () const; std::string suffix () const; @@ -58,6 +59,7 @@ class FilePath { const std::string& filename () const {return _fname;} void filename (const std::string &fname) {_fname = fname;} bool exists () const; + static bool isAbsolute (std::string path); protected: void init (std::string path, bool isfile, std::string current_dir); |