PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | stringbuffer_t |
Macros | |
#define | STRINGBUFFER_STARTSIZE 128 |
Functions | |
stringbuffer_t * | stringbuffer_create_with_size (size_t size) |
Allocate a new stringbuffer_t. More... | |
stringbuffer_t * | stringbuffer_create (void) |
Allocate a new stringbuffer_t. More... | |
void | stringbuffer_init (stringbuffer_t *s) |
void | stringbuffer_release (stringbuffer_t *s) |
void | stringbuffer_destroy (stringbuffer_t *sb) |
Free the stringbuffer_t and all memory managed within it. More... | |
void | stringbuffer_clear (stringbuffer_t *sb) |
Reset the stringbuffer_t. More... | |
void | stringbuffer_set (stringbuffer_t *sb, const char *s) |
Clear the stringbuffer_t and re-start it with the specified string. More... | |
void | stringbuffer_copy (stringbuffer_t *sb, stringbuffer_t *src) |
Copy the contents of src into dst. More... | |
void | stringbuffer_append (stringbuffer_t *sb, const char *s) |
Append the specified string to the stringbuffer_t. More... | |
int | stringbuffer_aprintf (stringbuffer_t *sb, const char *fmt,...) |
Appends a formatted string to the current string buffer, using the format and argument list provided. More... | |
const char * | stringbuffer_getstring (stringbuffer_t *sb) |
Returns a reference to the internal string being managed by the stringbuffer. More... | |
char * | stringbuffer_getstringcopy (stringbuffer_t *sb) |
Returns a newly allocated string large enough to contain the current state of the string. More... | |
int | stringbuffer_getlength (stringbuffer_t *sb) |
Returns the length of the current string, not including the null terminator (same behavior as strlen()). More... | |
char | stringbuffer_lastchar (stringbuffer_t *s) |
Return the last character in the buffer. More... | |
int | stringbuffer_trim_trailing_white (stringbuffer_t *s) |
Trims whitespace off the end of the stringbuffer. More... | |
int | stringbuffer_trim_trailing_zeroes (stringbuffer_t *s) |
Trims zeroes off the end of the last number in the stringbuffer. More... | |