199 avail =
str->maxlen -
str->len;
213 str->data[
str->len] =
'\0';
245 if (
str->len + 1 >=
str->maxlen)
251 str->data[
str->len] =
'\0';
270 str->data[
str->len] =
'\0';
297 str->data[
str->len] =
'\0';
363 errdetail(
"Cannot enlarge string buffer containing %d bytes by %d more bytes.",
367 _(
"string buffer exceeds maximum allowed length (%zu bytes)\n\nCannot enlarge string buffer containing %d bytes by %d more bytes.\n"),
#define Assert(condition)
#define fprintf(file, fmt, msg)
int errdetail(const char *fmt,...)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define palloc_object(type)
void * repalloc(void *pointer, Size size)
void pfree(void *pointer)
size_t pvsnprintf(char *buf, size_t len, const char *fmt, va_list args)
int appendStringInfoVA(StringInfo str, const char *fmt, va_list args)
void destroyStringInfo(StringInfo str)
StringInfo makeStringInfo(void)
static void initStringInfoInternal(StringInfo str, int initsize)
void resetStringInfo(StringInfo str)
void appendStringInfo(StringInfo str, const char *fmt,...)
void enlargeStringInfo(StringInfo str, int needed)
StringInfo makeStringInfoExt(int initsize)
void appendBinaryStringInfoNT(StringInfo str, const void *data, int datalen)
void appendBinaryStringInfo(StringInfo str, const void *data, int datalen)
static StringInfo makeStringInfoInternal(int initsize)
void appendStringInfoSpaces(StringInfo str, int count)
void initStringInfoExt(StringInfo str, int initsize)
void appendStringInfoString(StringInfo str, const char *s)
void appendStringInfoChar(StringInfo str, char ch)
void initStringInfo(StringInfo str)
#define STRINGINFO_DEFAULT_SIZE