From 9e90007a4a490dd1335b63079fc3e2a74420911f Mon Sep 17 00:00:00 2001 From: m-holger Date: Fri, 9 Feb 2024 13:03:53 +0000 Subject: Add new private class JSON::Writer Create a simple utility class for writing JSON to a pipeline. --- include/qpdf/JSON.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/qpdf/JSON.hh') diff --git a/include/qpdf/JSON.hh b/include/qpdf/JSON.hh index e3c8a7dc..3272800d 100644 --- a/include/qpdf/JSON.hh +++ b/include/qpdf/JSON.hh @@ -290,8 +290,11 @@ class JSON QPDF_DLL qpdf_offset_t getEnd() const; + // The following class does not form part of the public API and is for internal use only. + + class Writer; + private: - static std::string encode_string(std::string const& utf8); static void writeClose(Pipeline* p, bool first, size_t depth, char const* delimeter); enum value_type_e { -- cgit v1.2.3-54-g00ecf