63 static char *
string =
NULL;
90 start = &
string[offset];
132 (*p ==
'E' || *p ==
'e') &&
141 if (quote &&
strchr(quote, *p))
148 if (*p == escape && p[1] !=
'\0')
250 if (*src && *src == quote)
258 if (
c == quote && src[1] ==
'\0')
260 else if (
c == quote && src[1] == quote)
262 else if (
c == escape && src[1] !=
'\0')
293 char quote,
char escape,
bool force_quote,
319 else if (
c == escape)
#define Assert(condition)
int PQmblenBounded(const char *s, int encoding)
void * pg_malloc(size_t size)
static rewind_source * source
char * strtokx(const char *s, const char *whitespace, const char *delim, const char *quote, char escape, bool e_strings, bool del_quotes, int encoding)
char * quote_if_needed(const char *source, const char *entails_quote, char quote, char escape, bool force_quote, int encoding)
void strip_quotes(char *source, char quote, char escape, int encoding)