#include "math_stringinset.h"
#include "math_symbolinset.h"
#include "math_parser.h"
-#include "support/std_sstream.h"
#include "debug.h"
#include "support/filetools.h"
#include "support/lstrings.h"
#include <algorithm>
+#include <sstream>
using lyx::support::cmd_ret;
using lyx::support::getVectorFromString;
// convert this inset somehow to a number
bool extractNumber(MathArray const & ar, int & i)
{
- istringstream is(charSequence(ar.begin(), ar.end()).c_str());
+ istringstream is(charSequence(ar.begin(), ar.end()));
is >> i;
return is;
}
bool extractNumber(MathArray const & ar, double & d)
{
- istringstream is(charSequence(ar.begin(), ar.end()).c_str());
+ istringstream is(charSequence(ar.begin(), ar.end()));
is >> d;
return is;
}
// search deliminiters
//
-bool testOpenParan(MathAtom const & at)
+bool testOpenParen(MathAtom const & at)
{
return testString(at, "(");
}
-bool testCloseParan(MathAtom const & at)
+bool testCloseParen(MathAtom const & at)
{
return testString(at, ")");
}
void extractDelims(MathArray & ar)
{
//lyxerr << "\nDelims from: " << ar << endl;
- replaceNested(ar, testOpenParan, testCloseParan, replaceDelims);
+ replaceNested(ar, testOpenParen, testCloseParen, replaceDelims);
//lyxerr << "\nDelims to: " << ar << endl;
}
break;
// search line with "Incorrect syntax"
- istringstream is(out.c_str());
+ istringstream is(out);
string line;
while (is) {
getline(is, line);
string out = captureOutput("mint -i 1 -S -s -q -q", expr + ';');
if (out.empty())
break; // expression syntax is ok
- istringstream is(out.c_str());
+ istringstream is(out);
string line;
getline(is, line);
if (line.find("on line") != 0)
break;
// search line with single caret
- istringstream is(out.c_str());
+ istringstream is(out);
string line;
while (is) {
getline(is, line);