Commit 7ebd3f6f authored by Olivier Bertrand's avatar Olivier Bertrand

- Commit merged files (just changing some ending CRLF to LF)

modified:
  storage/connect/json.cpp
  storage/connect/xobject.cpp
parents dbf690b5 a87bb05a
...@@ -725,12 +725,13 @@ bool JOUTFILE::Escape(const char *s) ...@@ -725,12 +725,13 @@ bool JOUTFILE::Escape(const char *s)
for (unsigned int i = 0; i < strlen(s); i++) for (unsigned int i = 0; i < strlen(s); i++)
switch (s[i]) { switch (s[i]) {
case '\t': fputs("\\t", Stream); break; case '\t': fputs("\\t", Stream); break;
case '\n': fputs("\\n", Stream); break; case '\n': fputs("\\n", Stream); break;
case '\r': fputs("\\r", Stream); break; case '\r': fputs("\\r", Stream); break;
case '\b': fputs("\\b", Stream); break; case '\b': fputs("\\b", Stream); break;
case '\f': fputs("\\f", Stream); break; case '\f': fputs("\\f", Stream); break;
case '"': fputs("\\\"", Stream); break; case '\\': fputs("\\\\", Stream); break;
case '"': fputs("\\\"", Stream); break;
default: default:
fputc(s[i], Stream); fputc(s[i], Stream);
break; break;
......
...@@ -355,20 +355,20 @@ bool STRING::Append_quoted(PSZ s) ...@@ -355,20 +355,20 @@ bool STRING::Append_quoted(PSZ s)
if (s) for (char *p = s; !b && *p; p++) if (s) for (char *p = s; !b && *p; p++)
switch (*p) { switch (*p) {
case '\'': case '\'':
case '\\': case '\\':
case '\t': case '\t':
case '\n': case '\n':
case '\r': case '\r':
case '\b': case '\b':
case '\f': b |= Append('\\'); case '\f': b |= Append('\\');
// passthru // passthru
default: default:
b |= Append(*p); b |= Append(*p);
break; break;
} // endswitch *p } // endswitch *p
return (b |= Append('\'')); return (b |= Append('\''));
} // end of Append_quoted } // end of Append_quoted
/***********************************************************************/ /***********************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment