diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QUtil.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/qpdf/QUtil.hh b/include/qpdf/QUtil.hh index 6ff90c45..927fc1d8 100644 --- a/include/qpdf/QUtil.hh +++ b/include/qpdf/QUtil.hh @@ -161,6 +161,10 @@ namespace QUtil QPDF_DLL std::shared_ptr<char> make_shared_cstr(std::string const&); + // Copy string as a unique_ptr to an array. + QPDF_DLL + std::unique_ptr<char[]> make_unique_cstr(std::string const&); + // Returns lower-case hex-encoded version of the string, treating // each character in the input string as unsigned. The output // string will be twice as long as the input string. |