summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-03-06 15:41:43 +0100
committerm-holger <m-holger@kubitscheck.org>2023-03-08 22:00:26 +0100
commit4ee6ff0a738374290a79ba280be44c01e33354cf (patch)
tree2eec9b731fdd5393004bc12707b96bf39b48c9dd /include
parent4359de903866b2753273ddfefc12f00d06c83668 (diff)
downloadqpdf-4ee6ff0a738374290a79ba280be44c01e33354cf.tar.zst
Add new procedure QUtil::read_file_into_string
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QUtil.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/qpdf/QUtil.hh b/include/qpdf/QUtil.hh
index c2ad8448..b42fe195 100644
--- a/include/qpdf/QUtil.hh
+++ b/include/qpdf/QUtil.hh
@@ -485,6 +485,11 @@ namespace QUtil
void read_file_into_memory(
char const* filename, std::shared_ptr<char>& file_buf, size_t& size);
+ QPDF_DLL
+ std::string read_file_into_string(char const* filename);
+ QPDF_DLL
+ std::string read_file_into_string(FILE* f, std::string_view filename = "");
+
// This used to be called strcasecmp, but that is a macro on some
// platforms, so we have to give it a name that is not likely to
// be a macro anywhere.