|
libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
|
Represents COS text. More...
#include <art/paperback/carousel/text.hxx>

Public Types | |
| enum class | Convention { literal , hexadecimal } |
| Enumeration of text conventions. More... | |
Public Member Functions | |
| Text (Convention=Convention::literal) | |
| Constructor. | |
| Text (string, Convention=Convention::literal) | |
| Constructor. | |
| Text (char const *, Convention=Convention::literal) | |
| Constructor. | |
| Text (Text const &) | |
| Constructor. | |
| Text (Text &&) | |
| Constructor. | |
| ~Text () noexcept | |
| Destructor. | |
| Convention | convention () const |
| Get the text convention used for this object. | |
| string const & | operator* () const |
| Access text string. | |
| string const * | operator-> () const |
| Access text string. | |
| Text & | operator= (Text const &) |
| Assignment. | |
| Text & | operator= (Text &&) |
| Assignment. | |
| bool | operator== (Text const &) const |
| Comparison. | |
| bool | operator!= (Text const &) const |
| Comparison. | |
| bool | operator< (Text const &) const |
| Comparison. | |
| bool | operator<= (Text const &) const |
| Comparison. | |
| bool | operator> (Text const &) const |
| Comparison. | |
| bool | operator>= (Text const &) const |
| Comparison. | |
| void | attach (Owner &) |
| Attach value to owner. | |
| Owner * | owner () |
| Access owner, if any. | |
| Owner const * | owner () const |
| Access owner, if any. | |
Protected Member Functions | |
| virtual void | attach_children (Owner &) |
| Attach any children. | |
Private Attributes | |
| Convention | _convention |
| string | _data |
| Owner * | _owner {} |
Represents COS text.
The Text class does not impose any limit on the length of the text string.
|
strong |
Enumeration of text conventions.
See Section 3.2.3, "String Objects" in the PDF-1.4 specification for details about text strings and their representation.
| Art::Paperback::Carousel::Text::Text | ( | Convention | convention = Convention::literal | ) |
Constructor.
| Art::Paperback::Carousel::Text::Text | ( | string | data, |
| Convention | convention = Convention::literal ) |
Constructor.
| Art::Paperback::Carousel::Text::Text | ( | char const * | data, |
| Convention | convention = Convention::literal ) |
Constructor.
| Art::Paperback::Carousel::Text::Text | ( | Text const & | other | ) |
Constructor.
| Art::Paperback::Carousel::Text::Text | ( | Text && | other | ) |
Constructor.
|
noexcept |
Destructor.
| Text::Convention Art::Paperback::Carousel::Text::convention | ( | ) | const |
Get the text convention used for this object.
| string const & Art::Paperback::Carousel::Text::operator* | ( | ) | const |
Access text string.
| string const * Art::Paperback::Carousel::Text::operator-> | ( | ) | const |
Access text string.
| bool Art::Paperback::Carousel::Text::operator== | ( | Text const & | other | ) | const |
Comparison.
This function only compares the string value of this with other.
The text convention used by either string is ignored.
| bool Art::Paperback::Carousel::Text::operator!= | ( | Text const & | other | ) | const |
Comparison.
This function only compares the string value of this with other.
The text convention used by either string is ignored.
| bool Art::Paperback::Carousel::Text::operator< | ( | Text const & | other | ) | const |
Comparison.
| bool Art::Paperback::Carousel::Text::operator<= | ( | Text const & | other | ) | const |
Comparison.
| bool Art::Paperback::Carousel::Text::operator> | ( | Text const & | other | ) | const |
Comparison.
| bool Art::Paperback::Carousel::Text::operator>= | ( | Text const & | other | ) | const |
Comparison.
|
inherited |
Attach value to owner.
| owner | Reference to the owner. |
|
inherited |
Access owner, if any.
|
inherited |
Access owner, if any.
|
protectedvirtualinherited |
Attach any children.
| owner | The owner of the children. |
Reimplemented in Art::Paperback::Carousel::Array, and Art::Paperback::Carousel::Dictionary.