'\"' is more commonly written simply as '"'.
*/
/* These characters only need to be quoted at the start of the string */
if (*s == '<' ||
- *s == '\"' ||
+ *s == '"' ||
isdigit((unsigned char) *s) ||
((*s == '+' || *s == '-') &&
(isdigit((unsigned char) s[1]) || s[1] == '.')))
retval = RIGHT_PAREN;
else if (*token == '{')
retval = LEFT_BRACE;
- else if (*token == '\"' && length > 1 && token[length - 1] == '\"')
+ else if (*token == '"' && length > 1 && token[length - 1] == '"')
retval = T_String;
else if (*token == 'b')
retval = T_BitString;
errmsg("malformed array literal: \"%s\"", str),
errdetail("Unexpected end of input.")));
break;
- case '\"':
+ case '"':
/*
* A quote must be after a level start, after a quoted
dstendptr = dstptr;
hasquoting = true; /* can't be a NULL marker */
break;
- case '\"':
+ case '"':
in_quotes = !in_quotes;
if (in_quotes)
leadingspace = false;
{
const char *p;
- appendStringInfoCharMacro(buf, '\"');
+ appendStringInfoCharMacro(buf, '"');
for (p = str; *p; p++)
{
switch (*p)
break;
}
}
- appendStringInfoCharMacro(buf, '\"');
+ appendStringInfoCharMacro(buf, '"');
}
/*
errdetail("Unexpected end of input.")));
appendStringInfoChar(&buf, *ptr++);
}
- else if (ch == '\"')
+ else if (ch == '"')
{
if (!inquote)
inquote = true;
- else if (*ptr == '\"')
+ else if (*ptr == '"')
{
/* doubled quote within quote sequence */
appendStringInfoChar(&buf, *ptr++);
errdetail("Unexpected end of input.")));
appendStringInfoChar(&buf, *ptr++);
}
- else if (ch == '\"')
+ else if (ch == '"')
{
if (!inquote)
inquote = true;
- else if (*ptr == '\"')
+ else if (*ptr == '"')
{
/* doubled quote within quote sequence */
appendStringInfoChar(&buf, *ptr++);
char *curname;
char *endp;
- if (*nextp == '\"')
+ if (*nextp == '"')
{
/* Quoted name --- collapse quote-quote pairs, no downcasing */
curname = nextp + 1;
for (;;)
{
- endp = strchr(nextp + 1, '\"');
+ endp = strchr(nextp + 1, '"');
if (endp == NULL)
return false; /* mismatched quotes */
- if (endp[1] != '\"')
+ if (endp[1] != '"')
break; /* found end of quoted name */
/* Collapse adjacent quotes into one quote, and look again */
memmove(endp, endp + 1, strlen(endp));
char *curname;
char *endp;
- if (*nextp == '\"')
+ if (*nextp == '"')
{
/* Quoted name --- collapse quote-quote pairs */
curname = nextp + 1;
for (;;)
{
- endp = strchr(nextp + 1, '\"');
+ endp = strchr(nextp + 1, '"');
if (endp == NULL)
return false; /* mismatched quotes */
- if (endp[1] != '\"')
+ if (endp[1] != '"')
break; /* found end of quoted name */
/* Collapse adjacent quotes into one quote, and look again */
memmove(endp, endp + 1, strlen(endp));
}
else
{
- appendPQExpBufferChar(id_return, '\"');
+ appendPQExpBufferChar(id_return, '"');
for (cp = rawid; *cp; cp++)
{
/*
* double double-quote per SQL99. Before, we put in a
* backslash/double-quote pair. - thomas 2000-08-05
*/
- if (*cp == '\"')
- appendPQExpBufferChar(id_return, '\"');
+ if (*cp == '"')
+ appendPQExpBufferChar(id_return, '"');
appendPQExpBufferChar(id_return, *cp);
}
- appendPQExpBufferChar(id_return, '\"');
+ appendPQExpBufferChar(id_return, '"');
}
return id_return->data;
int i = 0;
int len = strlen(str);
- if (quoted && str[0] == '\"' && str[len - 1] == '\"') /* do not escape quotes
+ if (quoted && str[0] == '"' && str[len - 1] == '"') /* do not escape quotes
* at beginning and end
* if quoted string */
{
fputc(str[i], yyout);
}
- if (quoted && str[0] == '\"' && str[len] == '\"')
+ if (quoted && str[0] == '"' && str[len] == '"')
fputs("\"", yyout);
}