 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
22 #ifndef STRING_BUFFER_H
23 #define STRING_BUFFER_H
void stringbuffer_append_stringbuffer(StringBuffer *sb, const StringBuffer *sb2)
Append the contents of a string buffer instance to another string buffer instance.
void stringbuffer_trim_whitespace(StringBuffer *sb)
Trim trailing whitespace from a stringbuffer.
static event_registration c
StringBuffer * stringbuffer_new(void)
Create a new string buffer.
void stringbuffer_append_string(StringBuffer *sb, const char *str)
Append a string to a string buffer instance.
void stringbuffer_append_multiline_block(StringBuffer *sb, const char *start, const char *content, const char *end)
Append the specified content in a multiline block, starting with "start" and ending with "end".
void stringbuffer_append_printf(StringBuffer *sb, const char *format,...)
Append a formatted string to a string buffer instance.
A buffer that will be expanded as content is added to it.
char * stringbuffer_finish(StringBuffer *sb)
Deallocate the string buffer instance and return the string.
void stringbuffer_append_char(StringBuffer *sb, const char c)
Append a character to a string buffer instance.
const typedef char * sstring
size_t stringbuffer_length(StringBuffer *sb)
Return the current length of the buffer.
void stringbuffer_delete(StringBuffer *sb)
Totally delete a string buffer.
sstring stringbuffer_finish_shared(StringBuffer *sb)
Deallocate the string buffer instance and return the string as a shared string.
void stringbuffer_append_int64(StringBuffer *sb, int64_t x)
Append a signed integer to a string buffer instance.