diff options
author | Jay Berkenbilt <ejb@ql.org> | 2018-06-21 19:05:48 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2018-06-21 21:57:13 +0200 |
commit | e44c395c51518bafbf8f8466ea5a0f4b1f2b2efe (patch) | |
tree | 95da31b1da0055ee2b605272f7079c7ea230584c /include | |
parent | 44674a3e58882ea95d6ee54fa3e16c553c0afb3e (diff) | |
download | qpdf-e44c395c51518bafbf8f8466ea5a0f4b1f2b2efe.tar.zst |
QUtil::toUTF16
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QUtil.hh | 6 |
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 |