34 #include <QStringList> 44 QStringList base = line.split(
" ");
47 for (
int i=0; i<base.size(); ++i)
49 if (base[i].
startsWith(
"\"") && !base[i].endsWith(
"\""))
55 if ((i+1)<base.size() && !base[i].endsWith(
"\""))
58 }
while (i<base.size() && !base[i].endsWith(
"\""));
65 retval.push_back(base[i]);
68 retval.back() = retval.back().remove(
"\"");
78 int retval = text.toInt(&ok,0);
QStringList splitStringContaingQuotes(QString line)
bool startsWith(std::string const &s, std::string const &prefix)
int convertStringWithDefault(QString text, int def)
Namespace for all CustusX production code.