poser
A C framework for POsix SERvices
Loading...
Searching...
No Matches
stringbuilder.h
Go to the documentation of this file.
1#ifndef POSER_CORE_STRINGBUILDER_H
2#define POSER_CORE_STRINGBUILDER_H
3
4#include <poser/decl.h>
5
13C_CLASS_DECL(PSC_StringBuilder);
14
20DECLEXPORT PSC_StringBuilder *
22 ATTR_RETNONNULL;
23
29DECLEXPORT void
31 CMETHOD ATTR_NONNULL((2));
32
38DECLEXPORT void
40 CMETHOD;
41
47DECLEXPORT const char *
49 CMETHOD ATTR_RETNONNULL ATTR_PURE;
50
55DECLEXPORT void
57
58#endif
A simple string builder.
void PSC_StringBuilder_destroy(PSC_StringBuilder *self)
PSC_StringBuilder destructor.
PSC_StringBuilder * PSC_StringBuilder_create(void)
PSC_StringBuilder default constructor.
const char * PSC_StringBuilder_str(const PSC_StringBuilder *self)
Get the complete string.
void PSC_StringBuilder_append(PSC_StringBuilder *self, const char *str)
Append a string to the builder.
void PSC_StringBuilder_appendChar(PSC_StringBuilder *self, char c)
Append a single character to the builder.