GATE
gate_string8_class Struct Reference

character (byte) string class More...

#include <strings.h>

Public Attributes

gate_char8_t const * str
 
gate_size_t length
 
gate_stringbuffer_tbuffer
 

Detailed Description

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.

Member Data Documentation

◆ buffer

gate_stringbuffer_t* gate_string8_class::buffer

Optional pointer to a stringbuffer managing a dynamic string allocation

◆ length

gate_size_t gate_string8_class::length

Length of string pointed to by str

◆ str

gate_char8_t const* gate_string8_class::str

Pointer to first character in string


The documentation for this struct was generated from the following file: