diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-08-31 17:00:53 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-08-31 21:51:04 +0200 |
commit | 4fa7b1eb606ecd749409a907ea7a47b39d48cb7b (patch) | |
tree | b3d6eaa0e8b62e7edc0e39cfa0d56320f8daa4b7 /include | |
parent | cd2bd66781b13c7afef8c0111008860e6cb94ad7 (diff) | |
download | qpdf-4fa7b1eb606ecd749409a907ea7a47b39d48cb7b.tar.zst |
Add remove_file and rename_file to QUtil
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QUtil.hh | 7 |
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 |