solidc
Robust collection of general-purpose cross-platform C libraries and data structures designed for rapid and safe development in C
Loading...
Searching...
No Matches
Public Attributes | List of all members
utf8_string Struct Reference

Represents a mutable UTF-8 encoded string with metadata. More...

#include <unicode.h>

Public Attributes

char * data
 
size_t length
 
size_t count
 

Detailed Description

Represents a mutable UTF-8 encoded string with metadata.

This structure maintains both the UTF-8 byte data and precomputed statistics about the string for efficient operations.

Definition at line 48 of file unicode.h.

Member Data Documentation

◆ count

size_t utf8_string::count

Number of Unicode codepoints (characters).

Definition at line 51 of file unicode.h.

Referenced by utf8_append(), utf8_concat(), utf8_insert(), utf8_new(), utf8_new_with_capacity(), utf8_print_info(), utf8_remove(), utf8_replace(), utf8_replace_all(), and utf8_split().

◆ data

char* utf8_string::data

◆ length

size_t utf8_string::length

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