mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-05 08:02:11 +00:00
6c61be00e8
This is in preparation for restoring a QPDFObject.hh to ease the transition on qpdf_object_type_e. This commit was created by * Renaming QPDFObject.cc and QPDFObject.hh * Replacing QPDFObject\b with QPDFValueProxy (where \b is word boundary) * Running format-code * Manually resorting files in libqpdf/CMakeLists.txt * Manually refilling the comment in QPDF.hh near class Resolver
31 lines
798 B
C++
31 lines
798 B
C++
#ifndef QPDF_STRING_HH
|
|
#define QPDF_STRING_HH
|
|
|
|
#include <qpdf/QPDFValue.hh>
|
|
|
|
// QPDF_Strings may included embedded null characters.
|
|
|
|
class QPDF_String: public QPDFValue
|
|
{
|
|
friend class QPDFWriter;
|
|
|
|
public:
|
|
virtual ~QPDF_String() = default;
|
|
static std::shared_ptr<QPDFValueProxy> create(std::string const& val);
|
|
static std::shared_ptr<QPDFValueProxy>
|
|
create_utf16(std::string const& utf8_val);
|
|
virtual std::shared_ptr<QPDFValueProxy> shallowCopy();
|
|
virtual std::string unparse();
|
|
std::string unparse(bool force_binary);
|
|
virtual JSON getJSON(int json_version);
|
|
std::string getVal() const;
|
|
std::string getUTF8Val() const;
|
|
|
|
private:
|
|
QPDF_String(std::string const& val);
|
|
bool useHexString() const;
|
|
std::string val;
|
|
};
|
|
|
|
#endif // QPDF_STRING_HH
|