/[projects]/misc/mysql_splitter/splitter.cpp
ViewVC logotype

Diff of /misc/mysql_splitter/splitter.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1459 by torben, Wed May 11 11:11:42 2011 UTC revision 1460 by torben, Wed May 11 19:19:07 2011 UTC
# Line 18  const int BUFSIZE = 1024*1024; Line 18  const int BUFSIZE = 1024*1024;
18  string remove_comments(string in) {  string remove_comments(string in) {
19          bool isComment = false;          bool isComment = false;
20          ostringstream out;          ostringstream out;
21          for (int i=0; i<in.length() -1; i++) {          for (unsigned int i=0; i<in.length() -1; i++) {
22                  if (in.at(i) == '/' && in.at(i+1) == '*')                  if (in.at(i) == '/' && in.at(i+1) == '*')
23                          isComment = true;                          isComment = true;
24    

Legend:
Removed from v.1459  
changed lines
  Added in v.1460

  ViewVC Help
Powered by ViewVC 1.1.20