|
solidc
Robust collection of general-purpose cross-platform C libraries and data structures designed for rapid and safe development in C
|
Represents a mutable UTF-8 encoded string with metadata. More...
#include <unicode.h>
Public Attributes | |
| char * | data |
| size_t | length |
| size_t | count |
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.
| 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().
| char* utf8_string::data |
Null-terminated UTF-8 encoded string data. Caller must free.
Definition at line 49 of file unicode.h.
Referenced by utf8_append(), utf8_clone(), utf8_concat(), utf8_data(), utf8_free(), utf8_index_of(), utf8_insert(), utf8_last_index_of(), utf8_new(), utf8_new_with_capacity(), utf8_print(), utf8_print_codepoints(), utf8_remove(), utf8_replace(), utf8_replace_all(), utf8_reverse(), utf8_split(), utf8_substr(), and utf8_writeto().
| size_t utf8_string::length |
Total number of bytes (excluding null terminator).
Definition at line 50 of file unicode.h.
Referenced by utf8_append(), utf8_concat(), utf8_insert(), utf8_last_index_of(), utf8_new(), utf8_new_with_capacity(), utf8_print_info(), utf8_remove(), utf8_replace(), utf8_replace_all(), utf8_reverse(), utf8_split(), utf8_substr(), and utf8_writeto().