--- misc/mysql_splitter/splitter.cpp 2011/04/10 20:37:28 1282 +++ misc/mysql_splitter/splitter.cpp 2011/04/10 21:15:14 1283 @@ -15,7 +15,31 @@ const int BUFSIZE = 1024*1024; +string remove_comments(string in) { + bool isComment = false; + ostringstream out; + for (int i=0; i words; words = boost::split(words, input, boost::is_any_of(" ") ); @@ -25,7 +49,6 @@ boost::trim(last); - return last; }