aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QUtil.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2018-06-21 19:05:48 +0200
committerJay Berkenbilt <ejb@ql.org>2018-06-21 21:57:13 +0200
commite44c395c51518bafbf8f8466ea5a0f4b1f2b2efe (patch)
tree95da31b1da0055ee2b605272f7079c7ea230584c /include/qpdf/QUtil.hh
parent44674a3e58882ea95d6ee54fa3e16c553c0afb3e (diff)
downloadqpdf-e44c395c51518bafbf8f8466ea5a0f4b1f2b2efe.tar.zst
QUtil::toUTF16
Diffstat (limited to 'include/qpdf/QUtil.hh')
-rw-r--r--include/qpdf/QUtil.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/qpdf/QUtil.hh b/include/qpdf/QUtil.hh
index a6be68f8..a81b0a9e 100644
--- a/include/qpdf/QUtil.hh
+++ b/include/qpdf/QUtil.hh
@@ -140,6 +140,12 @@ namespace QUtil
QPDF_DLL
std::string toUTF8(unsigned long uval);
+ // Return a string containing the byte representation of the
+ // UTF-16 BE encoding for the unicode value passed in.
+ // Unrepresentable code points are converted to U+FFFD.
+ QPDF_DLL
+ std::string toUTF16(unsigned long uval);
+
// If secure random number generation is supported on your
// platform and qpdf was not compiled with insecure random number
// generation, this returns a cryptographically secure random