+/**
+ * \file math_autocorrect.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
#include <config.h>
-#include "LString.h"
-#include "Lsstream.h"
-#include "debug.h"
-#include "support/filetools.h" // LibFileSearch
+#include "math_autocorrect.h"
#include "math_data.h"
#include "math_inset.h"
+#include "math_support.h"
#include "math_parser.h"
+#include "debug.h"
+
+#include "support/std_sstream.h"
+#include "support/filetools.h" // LibFileSearch
-#include <iostream>
#include <fstream>
-#include <vector>
+using lyx::support::LibFileSearch;
+
+using std::string;
using std::ifstream;
using std::istream;
+using std::istringstream;
using std::ostream;
using std::endl;
using std::vector;
// << "trying to correct ar: " << at << " from: '" << from1_ << '\'' << endl;
if (from2_ != c)
return false;
- if (!at->match(from1_))
+ if (asString(at) != asString(from1_))
return false;
lyxerr[Debug::MATHED]
<< "match found! subst in " << at
//lyxerr[Debug::MATHED] << "ignoring line '" << line << '\'' << endl;
continue;
}
- istringstream il(STRCONV(line));
+ istringstream il(line);
//lyxerr[Debug::MATHED] << "line '" << line << '\'' << endl;
Correction corr;