[Kst] branches/work/kst/portto4/kst/src/datasources/ascii
Peter Kümmel
syntheticpp at gmx.net
Sun Feb 13 13:43:34 CET 2011
SVN commit 1220243 by kuemmel:
use 'skip' as before, 'keep' makes each single space a column
M +2 -2 asciisource.cpp
--- branches/work/kst/portto4/kst/src/datasources/ascii/asciisource.cpp #1220242:1220243
@@ -705,7 +705,7 @@
const QRegExp regexColumnDelimiter(QString("[%1]").arg(QRegExp::escape(cfg->_columnDelimiter.value())));
if (cfg->_columnType == AsciiSourceConfig::Custom && !cfg->_columnDelimiter.value().isEmpty()) {
- parts += QString(line).trimmed().split(regexColumnDelimiter, QString::KeepEmptyParts);
+ parts += QString(line).trimmed().split(regexColumnDelimiter, QString::SkipEmptyParts);
} else if (cfg->_columnType == AsciiSourceConfig::Fixed) {
int cnt = line.length() / cfg->_columnWidth;
for (int i = 0; i < cnt; ++i) {
@@ -713,7 +713,7 @@
parts += sub.trimmed();
}
} else {
- parts += QString(line).trimmed().split(QRegExp("\\s"), QString::KeepEmptyParts);
+ parts += QString(line).trimmed().split(QRegExp("\\s"), QString::SkipEmptyParts);
}
return parts;
}
More information about the Kst
mailing list