GATE
|
character (byte) string class More...
#include <strings.h>
Data Fields | |
gate_char8_t const * | str |
gate_size_t | length |
gate_stringbuffer_t * | buffer |
character (byte) string class
A string class holds a pointer to the first character of a constant (immutable) text string and the valid length. Strings are expected to be UTF-8 encoded but the encoding is not checked until conversion into other text-formats are performed. Strings need not to be null-terminated. If a string-buffer is attached, the content of the string is bound to the attached buffer. If no buffer is attached, the object points to a foreign region and its allocation must be ensured as long as the string object referres to it.
gate_char8_t const* str |
Pointer to first character in string
gate_size_t length |
Length of string pointed to by str
gate_stringbuffer_t* buffer |
Optional pointer to a stringbuffer managing a dynamic string allocation