37 const char *chunk_search_start,
46 if (maxlen >= 0 && maxlen < slen)
51 chunk_search_start = copy;
52 chunk_copy_start = copy;
58 chunk_search_start = s;
66 while ((chunk_end = strchr(chunk_search_start,
'\'')) != NULL)
71 chunk_end - chunk_copy_start + 1);
74 chunk_copy_start = chunk_end;
75 chunk_search_start = chunk_end + 1;
#define Assert(condition)
int pg_mbcliplen(const char *mbstr, int len, int limit)
char * pnstrdup(const char *in, Size len)
void pfree(void *pointer)
void appendStringInfo(StringInfo str, const char *fmt,...)
void appendBinaryStringInfoNT(StringInfo str, const void *data, int datalen)
#define appendStringInfoCharMacro(str, ch)
void appendStringInfoStringQuoted(StringInfo str, const char *s, int maxlen)