aboutsummaryrefslogtreecommitdiffstats
path: root/libdevcore/CommonIO.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-06-28 00:08:49 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-08-06 19:54:22 +0800
commit3de0b8b7f002bdc76e629f89df73523b36a169f5 (patch)
tree2a83163b5e199c4ed7819780b1e0b4f51bbeefbf /libdevcore/CommonIO.h
parent9d03de1f250cecad2c5c796beb10d96c3c9b15cd (diff)
downloaddexon-solidity-3de0b8b7f002bdc76e629f89df73523b36a169f5.tar.gz
dexon-solidity-3de0b8b7f002bdc76e629f89df73523b36a169f5.tar.zst
dexon-solidity-3de0b8b7f002bdc76e629f89df73523b36a169f5.zip
Move absolutePath/sanitizePath helpers from CompilerStack to libdevcore
Diffstat (limited to 'libdevcore/CommonIO.h')
-rw-r--r--libdevcore/CommonIO.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libdevcore/CommonIO.h b/libdevcore/CommonIO.h
index 9ba68e74..928b6d15 100644
--- a/libdevcore/CommonIO.h
+++ b/libdevcore/CommonIO.h
@@ -62,4 +62,10 @@ std::string toString(_T const& _t)
/// Should be replaced by the boost implementation as soon as support for boost<1.60 can be dropped.
boost::filesystem::path weaklyCanonicalFilesystemPath(boost::filesystem::path const &_path);
+/// @returns the absolute path corresponding to @a _path relative to @a _reference.
+std::string absolutePath(std::string const& _path, std::string const& _reference);
+
+/// Helper function to return path converted strings.
+std::string sanitizePath(std::string const& _path);
+
}