aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QUtil.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-08-31 17:00:53 +0200
committerJay Berkenbilt <ejb@ql.org>2019-08-31 21:51:04 +0200
commit4fa7b1eb606ecd749409a907ea7a47b39d48cb7b (patch)
treeb3d6eaa0e8b62e7edc0e39cfa0d56320f8daa4b7 /include/qpdf/QUtil.hh
parentcd2bd66781b13c7afef8c0111008860e6cb94ad7 (diff)
downloadqpdf-4fa7b1eb606ecd749409a907ea7a47b39d48cb7b.tar.zst
Add remove_file and rename_file to QUtil
Diffstat (limited to 'include/qpdf/QUtil.hh')
-rw-r--r--include/qpdf/QUtil.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qpdf/QUtil.hh b/include/qpdf/QUtil.hh
index a0442f69..9994fcc6 100644
--- a/include/qpdf/QUtil.hh
+++ b/include/qpdf/QUtil.hh
@@ -111,6 +111,13 @@ namespace QUtil
bool same_file(char const* name1, char const* name2);
QPDF_DLL
+ void remove_file(char const* path);
+
+ // rename_file will overwrite newname if it exists
+ QPDF_DLL
+ void rename_file(char const* oldname, char const* newname);
+
+ QPDF_DLL
char* copy_string(std::string const&);
// Returns lower-case hex-encoded version of the string, treating