diff options
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 |