|
|
| PdfName () |
| | Constructor to create null name (corresponds to "/") use PdfName::Null instead of this constructor.
|
|
template<std::size_t N> |
| | PdfName (const char(&str)[N]) |
|
template<std::size_t N> |
| | PdfName (char(&str)[N]) |
| | Construct a new PdfName from a character buffer, up to its NUL termination or its size.
|
|
template<typename T, typename = std::enable_if_t<std::is_same_v<T, const char*>>> |
| | PdfName (T str) |
| | PdfName (const std::string_view &str) |
| | Create a new PdfName object.
|
|
| PdfName (const std::string &str) |
|
| PdfName (charbuff &&buff) |
| | PdfName (const char &str, size_t length) |
| | This constructor is reserved for read-only string literals, use with caution.
|
| | PdfName (const PdfName &rhs) |
| | Create a copy of an existing PdfName object.
|
|
| PdfName (PdfName &&rhs) noexcept |
| std::string | GetEscapedName () const |
|
void | Write (OutputStream &stream, PdfWriteFlags writeMode, const PdfStatefulEncrypt *encrypt, charbuff &buffer) const |
| std::string_view | GetString () const |
| bool | IsNull () const |
| std::string_view | GetRawData () const |
| PdfName & | operator= (const PdfName &rhs) |
| | Assign another name to this object.
|
|
PdfName & | operator= (PdfName &&rhs) noexcept |
| bool | operator== (const PdfName &rhs) const |
| | compare to PdfName objects.
|
|
bool | operator== (const char *str) const |
|
bool | operator== (const std::string &str) const |
|
bool | operator== (const std::string_view &view) const |
| bool | operator!= (const PdfName &rhs) const |
| | compare two PdfName objects.
|
|
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 raw data 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.
|
This class represents a PdfName.
Whenever a key is required you have to use a PdfName object.
PdfName are required as keys in PdfObject and PdfVariant objects.
PdfName may have a maximum length of 127 characters.
- See also
- PdfObject
-
PdfVariant