aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QUtil.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2018-01-14 15:04:13 +0100
committerJay Berkenbilt <ejb@ql.org>2018-01-14 15:04:13 +0100
commit3e306ae64cc3d160034f27d72ad27bee03a65aa5 (patch)
treed60ce6f228328e1560e51cf494bc93b7ff2bd03e /include/qpdf/QUtil.hh
parent68572df2bf0c6d1d7756ff05a96e01d7e2f69c09 (diff)
downloadqpdf-3e306ae64cc3d160034f27d72ad27bee03a65aa5.tar.zst
Add QUtil::hex_decode
Diffstat (limited to 'include/qpdf/QUtil.hh')
-rw-r--r--include/qpdf/QUtil.hh8
1 files changed, 8 insertions, 0 deletions
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();