From 42306e2ff8716ce9a8f57da791122cc88308890c Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 20 Jun 2019 19:48:53 -0400 Subject: QUtil: add unsigned int/string functions --- include/qpdf/QUtil.hh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/qpdf/QUtil.hh b/include/qpdf/QUtil.hh index 02dec5ad..afdd2033 100644 --- a/include/qpdf/QUtil.hh +++ b/include/qpdf/QUtil.hh @@ -40,8 +40,12 @@ namespace QUtil QPDF_DLL std::string int_to_string(long long, int length = 0); QPDF_DLL + std::string uint_to_string(unsigned long long, int length = 0); + QPDF_DLL std::string int_to_string_base(long long, int base, int length = 0); QPDF_DLL + std::string uint_to_string_base(unsigned long long, int base, int length = 0); + QPDF_DLL std::string double_to_string(double, int decimal_places = 0); // These string to number methods throw std::runtime_error on @@ -50,6 +54,10 @@ namespace QUtil long long string_to_ll(char const* str); QPDF_DLL int string_to_int(char const* str); + QPDF_DLL + unsigned long long string_to_ull(char const* str); + QPDF_DLL + unsigned int string_to_uint(char const* str); // Pipeline's write method wants unsigned char*, but we often have // some other type of string. These methods do combinations of -- cgit v1.2.3-70-g09d2