aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QUtil.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-06-21 01:48:53 +0200
committerJay Berkenbilt <ejb@ql.org>2019-06-21 19:17:21 +0200
commit42306e2ff8716ce9a8f57da791122cc88308890c (patch)
tree9050f3ae8a9cab1524ab41df0b7b3f683b974870 /include/qpdf/QUtil.hh
parenta66828caff16a4ad64b9d69b5db1c5a5e60418cc (diff)
downloadqpdf-42306e2ff8716ce9a8f57da791122cc88308890c.tar.zst
QUtil: add unsigned int/string functions
Diffstat (limited to 'include/qpdf/QUtil.hh')
-rw-r--r--include/qpdf/QUtil.hh8
1 files changed, 8 insertions, 0 deletions
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