diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-05-15 20:56:04 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-05-16 19:39:26 +0200 |
commit | 60ec94a7c35ff3f7153c99deff29afef91500622 (patch) | |
tree | 91de8c310c6c0f8e5803d6b3ede4f00e5f3048ed /include | |
parent | 173b944ef8f1dd3f971a6089a52fcd1ae07ca8f1 (diff) | |
download | qpdf-60ec94a7c35ff3f7153c99deff29afef91500622.tar.zst |
Add QUtil::is_long_long
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QUtil.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qpdf/QUtil.hh b/include/qpdf/QUtil.hh index 8b2b5ff8..5d33b2a5 100644 --- a/include/qpdf/QUtil.hh +++ b/include/qpdf/QUtil.hh @@ -65,6 +65,13 @@ namespace QUtil QPDF_DLL unsigned int string_to_uint(char const* str); + // Returns true if this exactly represents a long long. The + // determination is made by converting the string to a long long, + // then converting the result back to a string, and then comparing + // that result with the original string. + QPDF_DLL + bool is_long_long(char const* str); + // Pipeline's write method wants unsigned char*, but we often have // some other type of string. These methods do combinations of // const_cast and reinterpret_cast to give us an unsigned char*. |