GATE
Loading...
Searching...
No Matches
gate_string8_class Struct Reference

character (byte) string class More...

#include <strings.h>

Data Fields

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.

Field Documentation

◆ str

gate_char8_t const* str

Pointer to first character in string

◆ length

gate_size_t length

Length of string pointed to by str

◆ buffer

Optional pointer to a stringbuffer managing a dynamic string allocation


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