Skip to content

Commit

Permalink
- Change some line endings from CRLF to LF
Browse files Browse the repository at this point in the history
modified:
  storage/connect/json.cpp
  storage/connect/xobject.cpp
  • Loading branch information
Buggynours committed Jan 23, 2015
1 parent 2cd36ad commit a87bb05
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
13 changes: 7 additions & 6 deletions storage/connect/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -725,12 +725,13 @@ bool JOUTFILE::Escape(const char *s)

for (unsigned int i = 0; i < strlen(s); i++)
switch (s[i]) {
case '\t': fputs("\\t", Stream); break;
case '\n': fputs("\\n", Stream); break;
case '\r': fputs("\\r", Stream); break;
case '\b': fputs("\\b", Stream); break;
case '\f': fputs("\\f", Stream); break;
case '"': fputs("\\\"", Stream); break;
case '\t': fputs("\\t", Stream); break;
case '\n': fputs("\\n", Stream); break;
case '\r': fputs("\\r", Stream); break;
case '\b': fputs("\\b", Stream); break;
case '\f': fputs("\\f", Stream); break;
case '\\': fputs("\\\\", Stream); break;
case '"': fputs("\\\"", Stream); break;
default:
fputc(s[i], Stream);
break;
Expand Down
28 changes: 14 additions & 14 deletions storage/connect/xobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,20 +355,20 @@ bool STRING::Append_quoted(PSZ s)

if (s) for (char *p = s; !b && *p; p++)
switch (*p) {
case '\'':
case '\\':
case '\t':
case '\n':
case '\r':
case '\b':
case '\f': b |= Append('\\');
// passthru
default:
b |= Append(*p);
break;
} // endswitch *p

return (b |= Append('\''));
case '\'':
case '\\':
case '\t':
case '\n':
case '\r':
case '\b':
case '\f': b |= Append('\\');
// passthru
default:
b |= Append(*p);
break;
} // endswitch *p

return (b |= Append('\''));
} // end of Append_quoted

/***********************************************************************/
Expand Down

0 comments on commit a87bb05

Please sign in to comment.