blob: 9b6fc95cfbc5736724e20840c2252bde41192ae7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#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<QPDFObject> create(std::string const& val);
static std::shared_ptr<QPDFObject>
create_utf16(std::string const& utf8_val);
virtual std::shared_ptr<QPDFObject> shallowCopy();
virtual std::string unparse();
virtual qpdf_object_type_e getTypeCode() const;
virtual char const* getTypeName() const;
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
|