poser
A C framework for POsix SERvices
Loading...
Searching...
No Matches
PSC_StringBuilder Class Reference

A simple string builder. More...

#include <poser/core/stringbuilder.h>

Public Member Functions

PSC_StringBuilderPSC_StringBuilder_create (void)
 PSC_StringBuilder default constructor.
 
void PSC_StringBuilder_append (PSC_StringBuilder *self, const char *str)
 Append a string to the builder.
 
const char * PSC_StringBuilder_str (const PSC_StringBuilder *self)
 Get the complete string.
 
void PSC_StringBuilder_destroy (PSC_StringBuilder *self)
 PSC_StringBuilder destructor.
 

Detailed Description

A simple string builder.

Member Function Documentation

◆ PSC_StringBuilder_append()

void PSC_StringBuilder_append ( PSC_StringBuilder self,
const char *  str 
)

Append a string to the builder.

Parameters
selfthe PSC_StringBuilder
strthe string to append

◆ PSC_StringBuilder_create()

PSC_StringBuilder * PSC_StringBuilder_create ( void  )

PSC_StringBuilder default constructor.

Creates a new PSC_StringBuilder

Returns
a newly created PSC_StringBuilder

◆ PSC_StringBuilder_destroy()

void PSC_StringBuilder_destroy ( PSC_StringBuilder self)

PSC_StringBuilder destructor.

Parameters
selfthe PSC_StringBuilder

◆ PSC_StringBuilder_str()

const char * PSC_StringBuilder_str ( const PSC_StringBuilder self)

Get the complete string.

Parameters
selfthe PSC_StringBuilder
Returns
the complete string

The documentation for this class was generated from the following file: