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)
int convertStringWithDefault(QString text, int def)