35#ifndef __YTLIB_STR_BUFF_H
36#define __YTLIB_STR_BUFF_H
Expandable String Buffer.
ytStrBuff * ytStrBuff_expand(ytStrBuff *this, size_t length)
Expands the size of the allocated buffer memory.
Definition: ytStrBuff.c:102
ytStrBuff * ytStrBuff_new()
Generates the new ytStrBuff instance.
Definition: ytStrBuff.c:59
ytStrBuff * ytStrBuff_add(ytStrBuff *this, char c)
Adds a character to the end of the buffer.
Definition: ytStrBuff.c:127
char * ytStrBuff_gen(const ytStrBuff *this)
Generates a new string identical to the string buffer.
Definition: ytStrBuff.c:241
size_t ytStrBuff_length(const ytStrBuff *this)
Returns the length of the string in the buffer.
Definition: ytStrBuff.c:169
void * ytStrBuff_ptr(const ytStrBuff *this)
Returns the pointer pointing to the current string.
Definition: ytStrBuff.c:212
ytStrBuff * ytStrBuff_addStr(ytStrBuff *this, const char *str)
Adds a string to the end of the buffer.
Definition: ytStrBuff.c:146
const char * ytStrBuff_str(const ytStrBuff *this)
Returns the pointer pointing to the current string.
Definition: ytStrBuff.c:196
size_t ytStrBuff_len(const ytStrBuff *this)
Returns the length of the string in the buffer.
Definition: ytStrBuff.c:183
void ytStrBuff_delete(void *this)
Deletes the ytStrBuff instance.
Definition: ytStrBuff.c:77
void ytStrBuff_clear(ytStrBuff *this)
Clears the buffer.
Definition: ytStrBuff.c:225
Definition: ytStrBuff.c:41