diff options
author | Jay Berkenbilt <ejb@ql.org> | 2018-12-20 17:25:19 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2018-12-22 01:11:57 +0100 |
commit | fa3664357b6fd23b6d74c6835bbf6c8e911892aa (patch) | |
tree | 9a2597f665a593b62792843b0a1f5a80bf548350 /include | |
parent | 313ba081265f69ac9a0324f9fe87087c72918191 (diff) | |
download | qpdf-fa3664357b6fd23b6d74c6835bbf6c8e911892aa.tar.zst |
Move numrange code from qpdf.cc to QUtil.cc
Also move tests to libtests.
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 bcedd4d3..96c0530b 100644 --- a/include/qpdf/QUtil.hh +++ b/include/qpdf/QUtil.hh @@ -26,6 +26,7 @@ #include <qpdf/Types.h> #include <string> #include <list> +#include <vector> #include <stdexcept> #include <stdio.h> #include <time.h> @@ -220,6 +221,11 @@ namespace QUtil QPDF_DLL bool is_number(char const*); + + // This method parses the numeric range syntax used by the qpdf + // command-line tool. May throw std::runtime_error. + QPDF_DLL + std::vector<int> parse_numrange(char const* range, int max); }; #endif // QUTIL_HH |