Stores a text. More...
#include <OpenDDLCommon.h>
Public Member Functions | |
| Text (const char *buffer, size_t numChars) | |
| The constructor with a given text buffer. More... | |
| ~Text () | |
| The destructor. | |
| void | clear () |
| Clears the text. | |
| void | set (const char *buffer, size_t numChars) |
| Set a new text. More... | |
| bool | operator== (const std::string &name) const |
| The compare operator for std::strings. | |
| bool | operator== (const Text &rhs) const |
| The compare operator for Texts. | |
Public Attributes | |
| size_t | m_capacity |
| The capacity of the text. | |
| size_t | m_len |
| The length of the text. | |
| char * | m_buffer |
| The buffer with the text. | |
Stores a text.
A text is stored in a simple character buffer. Texts buffer can be greater than the number of stored characters in them.
|
inline |
The constructor with a given text buffer.
| buffer | [in] The buffer. |
| numChars | [in] The number of characters in the buffer. |
|
inline |
Set a new text.
| buffer | [in] The buffer. |
| numChars | [in] The number of characters in the buffer. |
1.8.8