Merge branch 'main' into feature/new-object-system
This commit is contained in:
@@ -8,9 +8,14 @@
|
||||
|
||||
struct b_string {
|
||||
struct b_dsref s_base;
|
||||
/* length of string, not including null-terminator */
|
||||
/* length of string in bytes, not including null-terminator.
|
||||
* a multi-byte utf-8 codepoint will be counted as multiple bytes here */
|
||||
unsigned int s_len;
|
||||
/* maximum length of string storable in the currently-allocated buffer, not including null terminator */
|
||||
/* length of string in codepoints, not including null-terminator.
|
||||
* a multi-byte utf-8 codepoint will be counted as one codepoint here */
|
||||
unsigned int s_codepoints;
|
||||
/* maximum length of string storable in the currently-allocated buffer
|
||||
* in bytes, not including null terminator */
|
||||
unsigned int s_max;
|
||||
union {
|
||||
char d_inline[STRING_INLINE_CAPACITY + 1];
|
||||
|
||||
Reference in New Issue
Block a user