diff options
author | Jay Berkenbilt <ejb@ql.org> | 2021-02-21 22:09:16 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-02-21 22:21:52 +0100 |
commit | a76decd2d59f8d23791013d822e65b4363d450cd (patch) | |
tree | de50a641a3829ca749ec16e2dfb6e21579d99df6 /libqpdf/QPDFObjGen.cc | |
parent | 7540d2082a97637f334ee882e57afc986ef87116 (diff) | |
download | qpdf-a76decd2d59f8d23791013d822e65b4363d450cd.tar.zst |
Add QPDFObjGen::unparse
Diffstat (limited to 'libqpdf/QPDFObjGen.cc')
-rw-r--r-- | libqpdf/QPDFObjGen.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libqpdf/QPDFObjGen.cc b/libqpdf/QPDFObjGen.cc index a887720e..6f956239 100644 --- a/libqpdf/QPDFObjGen.cc +++ b/libqpdf/QPDFObjGen.cc @@ -1,4 +1,5 @@ #include <qpdf/QPDFObjGen.hh> +#include <qpdf/QUtil.hh> QPDFObjGen::QPDFObjGen() : obj(0), @@ -42,3 +43,10 @@ std::ostream& operator<<(std::ostream& os, const QPDFObjGen& og) os << og.obj << "," << og.gen; return os; } + +std::string +QPDFObjGen::unparse() const +{ + return QUtil::int_to_string(this->obj) + "," + + QUtil::int_to_string(this->gen); +} |