libircbot
library providing a framework for implementing an IRC bot
Loading...
Searching...
No Matches
stringbuilder.h
Go to the documentation of this file.
1#ifndef IRCBOT_STRINGBUILDER_H
2#define IRCBOT_STRINGBUILDER_H
3
4#include <ircbot/decl.h>
5
13C_CLASS_DECL(IBStringBuilder);
14
20DECLEXPORT IBStringBuilder *IBStringBuilder_create(void) ATTR_RETNONNULL;
21
27DECLEXPORT void IBStringBuilder_append(IBStringBuilder *self, const char *str)
28 CMETHOD ATTR_NONNULL((2));
29
35DECLEXPORT const char *IBStringBuilder_str(const IBStringBuilder *self)
36 CMETHOD ATTR_RETNONNULL ATTR_PURE;
37
43
44#endif
A simple string builder.
void IBStringBuilder_append(IBStringBuilder *self, const char *str)
Append a string to the builder.
IBStringBuilder * IBStringBuilder_create(void)
IBStringBuilder default constructor.
const char * IBStringBuilder_str(const IBStringBuilder *self)
Get the complete string.
void IBStringBuilder_destroy(IBStringBuilder *self)
IBStringBuilder destructor.
Common preprocessor declarations for libircbot.