Crossfire Server, Trunk
stringbuffer.h
Go to the documentation of this file.
1 
22 #ifndef STRING_BUFFER_H
23 #define STRING_BUFFER_H
24 
25 #include <ctype.h>
26 
27 #include "global.h"
28 
29 
33 typedef struct StringBuffer StringBuffer;
34 
35 
42 
48 
59 
72 
80 void stringbuffer_append_string(StringBuffer *sb, const char *str);
81 
89 void stringbuffer_append_printf(StringBuffer *sb, const char *format, ...);
90 
98 void stringbuffer_append_char(StringBuffer *sb, const char c);
99 
108 void stringbuffer_append_int64(StringBuffer *sb, int64_t x);
109 
119 
128 void stringbuffer_append_multiline_block(StringBuffer *sb, const char *start, const char *content, const char *end);
129 
137 
145 
146 #endif
global.h
stringbuffer_append_stringbuffer
void stringbuffer_append_stringbuffer(StringBuffer *sb, const StringBuffer *sb2)
Definition: stringbuffer.c:165
diamondslots.x
x
Definition: diamondslots.py:15
stringbuffer_trim_whitespace
void stringbuffer_trim_whitespace(StringBuffer *sb)
Definition: stringbuffer.c:222
c
static event_registration c
Definition: citylife.cpp:427
stringbuffer_new
StringBuffer * stringbuffer_new(void)
Definition: stringbuffer.c:57
stringbuffer_append_string
void stringbuffer_append_string(StringBuffer *sb, const char *str)
Definition: stringbuffer.c:95
stringbuffer_append_multiline_block
void stringbuffer_append_multiline_block(StringBuffer *sb, const char *start, const char *content, const char *end)
Definition: stringbuffer.c:196
stringbuffer_append_printf
void stringbuffer_append_printf(StringBuffer *sb, const char *format,...)
Definition: stringbuffer.c:138
make_face_from_files.str
str
Definition: make_face_from_files.py:24
sstring
const typedef char * sstring
Definition: global.h:40
StringBuffer
Definition: stringbuffer.c:25
stringbuffer_finish
char * stringbuffer_finish(StringBuffer *sb)
Definition: stringbuffer.c:76
stringbuffer_append_char
void stringbuffer_append_char(StringBuffer *sb, const char c)
Definition: stringbuffer.c:104
stringbuffer_length
size_t stringbuffer_length(StringBuffer *sb)
Definition: stringbuffer.c:218
stringbuffer_delete
void stringbuffer_delete(StringBuffer *sb)
Definition: stringbuffer.c:71
stringbuffer_finish_shared
sstring stringbuffer_finish_shared(StringBuffer *sb)
Definition: stringbuffer.c:85
stringbuffer_append_int64
void stringbuffer_append_int64(StringBuffer *sb, int64_t x)
Definition: stringbuffer.c:111