From 4ee6ff0a738374290a79ba280be44c01e33354cf Mon Sep 17 00:00:00 2001 From: m-holger Date: Mon, 6 Mar 2023 14:41:43 +0000 Subject: Add new procedure QUtil::read_file_into_string --- include/qpdf/QUtil.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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& 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. -- cgit v1.2.3-54-g00ecf