Represent the well known type text. More...
#include <Text.h>
| Public Types | 
| Public Member Functions | |
| Text () | |
| Construct an empty text element.  More... | |
| Text (encoding_t text_encoding, const Span< const uint8_t > &language_code, const Span< const uint8_t > &text) | |
| Construct a text element from a data buffer and an encoding.  More... | |
| Text (const Text &to_copy) | |
| Copy construct a text element.  More... | |
| ~Text () | |
| Destroy a text element.  More... | |
| Text & | operator= (const Text &to_copy) | 
| Copy assignment of another text element.  More... | |
| void | set_text (encoding_t text_encoding, const Span< const uint8_t > &language_code, const Span< const uint8_t > &text) | 
| Copy a text from an external buffer.  More... | |
| encoding_t | get_encoding () const | 
| Get the encoding of the text.  More... | |
| Span< const uint8_t > | get_language_code () const | 
| Return the language code.  More... | |
| Span< const uint8_t > | get_text () const | 
| Return the text contained in this object.  More... | |
| bool | append_as_record (MessageBuilder &message_builder, bool is_last_record=false) const | 
| Append into a message builder.  More... | |
| size_t | get_record_size () const | 
| Compute the size of this object in a ndef record.  More... | |
| enum encoding_t | 
| Text | ( | ) | 
Construct an empty text element.
| Text | ( | encoding_t | text_encoding, | 
| const Span< const uint8_t > & | language_code, | ||
| const Span< const uint8_t > & | text | ||
| ) | 
Construct a text element from a data buffer and an encoding.
| text_encoding | The encoding of the text. | 
| language_code | The string of the language code. | 
| text | The text buffer. | 
| ~Text | ( | ) | 
Destroy a text element.
| bool append_as_record | ( | MessageBuilder & | message_builder, | 
| bool | is_last_record = false | ||
| ) | const | 
Append into a message builder.
| encoding_t get_encoding | ( | ) | const | 
Get the encoding of the text.
| Span<const uint8_t> get_language_code | ( | ) | const | 
Return the language code.
| size_t get_record_size | ( | ) | const | 
Compute the size of this object in a ndef record.
| Span<const uint8_t> get_text | ( | ) | const | 
Return the text contained in this object.
Copy assignment of another text element.
| to_copy | The Text instance to copy | 
| void set_text | ( | encoding_t | text_encoding, | 
| const Span< const uint8_t > & | language_code, | ||
| const Span< const uint8_t > & | text | ||
| ) | 
Copy a text from an external buffer.
| text_encoding | The encoding of the text. | 
| language_code | The language code of the text. | 
| text | The text to copy. |