From fa3664357b6fd23b6d74c6835bbf6c8e911892aa Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 20 Dec 2018 11:25:19 -0500 Subject: Move numrange code from qpdf.cc to QUtil.cc Also move tests to libtests. --- include/qpdf/QUtil.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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 #include #include +#include #include #include #include @@ -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 parse_numrange(char const* range, int max); }; #endif // QUTIL_HH -- cgit v1.2.3-54-g00ecf