13 #include <QStringList> 23 QStringList base = line.split(
" ");
26 for (
int i=0; i<base.size(); ++i)
28 if (base[i].
startsWith(
"\"") && !base[i].endsWith(
"\""))
34 if ((i+1)<base.size() && !base[i].endsWith(
"\""))
37 }
while (i<base.size() && !base[i].endsWith(
"\""));
44 retval.push_back(base[i]);
47 retval.back() = retval.back().remove(
"\"");
57 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.