cbase 1.50.0
C/C++ Static Template
Loading...
Searching...
No Matches
Sized String Types

Classes

struct  String8
 A sized UTF-8 string slice. More...
struct  String8Node
 A node for building singly-linked lists of strings. More...
struct  String8List
 A singly-linked list of String8 slices. More...

Typedefs

typedef struct String8 String8
 A sized UTF-8 string slice.
typedef struct String8Node String8Node
 A node for building singly-linked lists of strings.
typedef struct String8List String8List
 A singly-linked list of String8 slices.

Detailed Description

Typedef Documentation

◆ String8

typedef struct String8 String8

A sized UTF-8 string slice.

Warning
Because this is a slice, it is NOT guaranteed to be null-terminated!

◆ String8List

typedef struct String8List String8List

A singly-linked list of String8 slices.

Tracks the total byte count across all nodes so that a contiguous join buffer can be allocated in a single arena_push call. Use str8_list_push() to append nodes.

◆ String8Node

typedef struct String8Node String8Node

A node for building singly-linked lists of strings.

Used internally by StringBuilders to accumulate segments without contiguous reallocation. Each node is a non-owning view into some backing buffer - it does not copy string data.