|
| PdfString () |
| Create an empty string.
|
|
| PdfString (charbuff &&buff, bool isHex) |
|
template<std::size_t N> |
| PdfString (const char(&str)[N]) |
|
template<typename T , typename = std::enable_if_t<std::is_same_v<T, const char*>>> |
| PdfString (T str) |
|
| PdfString (const std::string_view &view) |
| Construct a new PdfString from a utf-8 string The input string will be copied. More...
|
|
| PdfString (const std::string &str) |
|
| PdfString (std::string &&str) |
| Construct a new PdfString from a utf-8 string. More...
|
|
| PdfString (const PdfString &rhs) |
| Copy an existing PdfString. More...
|
|
| PdfString (PdfString &&rhs) noexcept |
|
bool | IsHex () const |
| Check if this is a hex string. More...
|
|
PdfStringCharset | GetCharset () const |
| A PdfString can be an unevaluated raw buffer, or can be a Ascii, PdfDocEncoding or Unicode string.
|
|
bool | IsEmpty () const |
|
bool | IsStringEvaluated () const |
| True if the raw data buffer has been evaluated to a string.
|
|
std::string_view | GetString () const |
| The contents of the string as UTF-8 string. More...
|
|
std::string_view | GetRawData () const |
|
void | Write (OutputStream &stream, PdfWriteFlags writeMode, const PdfStatefulEncrypt *encrypt, charbuff &buffer) const |
|
PdfString & | operator= (const PdfString &rhs) |
| Copy an existing PdfString. More...
|
|
PdfString & | operator= (PdfString &&rhs) noexcept |
|
bool | operator== (const PdfString &rhs) const |
| Comparison operator. More...
|
|
bool | operator== (const char *str) const |
|
bool | operator== (const std::string &str) const |
|
bool | operator== (const std::string_view &view) const |
|
bool | operator!= (const PdfString &rhs) const |
| Comparison operator. More...
|
|
bool | operator!= (const char *str) const |
|
bool | operator!= (const std::string &str) const |
|
bool | operator!= (const std::string_view &view) const |
|
| operator std::string_view () const |
| Default cast to utf8 string view.
|
|
std::string | ToString (PdfWriteFlags flags=PdfWriteFlags::None) const |
| Converts the current object into a string representation which can be written directly to a PDF file on disc. More...
|
|
void | ToString (std::string &str, PdfWriteFlags flags=PdfWriteFlags::None) const |
|
A string that can be written to a PDF document.
If it contains binary data it is automatically converted into a hex string, otherwise a normal PDF string is written to the document.
PdfString is an implicitly shared class. As a reason it is very fast to copy PdfString objects.