From 3e306ae64cc3d160034f27d72ad27bee03a65aa5 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 14 Jan 2018 09:04:13 -0500 Subject: Add QUtil::hex_decode --- include/qpdf/QUtil.hh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/qpdf/QUtil.hh b/include/qpdf/QUtil.hh index e8b9e8e1..a6be68f8 100644 --- a/include/qpdf/QUtil.hh +++ b/include/qpdf/QUtil.hh @@ -104,6 +104,14 @@ namespace QUtil QPDF_DLL std::string hex_encode(std::string const&); + // Returns a string that is the result of decoding the input + // string. The input string may consist of mixed case hexadecimal + // digits. Any characters that are not hexadecimal digits will be + // silently ignored. If there are an odd number of hexadecimal + // digits, a trailing 0 will be assumed. + QPDF_DLL + std::string hex_decode(std::string const&); + // Set stdin, stdout to binary mode QPDF_DLL void binary_stdout(); -- cgit v1.2.3-54-g00ecf