[Kst] branches/work/kst/portto4/kst/src/datasources/ascii
Nicolas Brisset
nicolas.brisset at eurocopter.com
Wed Jan 26 23:23:41 CET 2011
SVN commit 1217372 by brisset:
Fix typo
M +4 -4 asciisource.cpp
--- branches/work/kst/portto4/kst/src/datasources/ascii/asciisource.cpp #1217371:1217372
@@ -671,7 +671,7 @@
rc += "INDEX";
const QString columnDelimiter = cfg->_columnDelimiter.value();
- const QRegExp regexColumnDelemiter(QString("[%1]").arg(QRegExp::escape(columnDelimiter)));
+ const QRegExp regexColumnDelimiter(QString("[%1]").arg(QRegExp::escape(columnDelimiter)));
if (cfg->_readFields) {
int l = cfg->_fieldsLine;
while (!file.atEnd()) {
@@ -680,7 +680,7 @@
if (l-- == 0) {
if (r >= 0) {
if (cfg->_columnType == AsciiSourceConfig::Custom && !columnDelimiter.isEmpty()) {
- rc += QString(line).trimmed().split(regexColumnDelemiter, QString::SkipEmptyParts);
+ rc += 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) {
@@ -736,7 +736,7 @@
if (r > 1 && !regex.exactMatch(line)) {
line = line.trimmed();
if (cfg->_columnType == AsciiSourceConfig::Custom && !columnDelimiter.isEmpty()) {
- cnt = QString(line).split(regexColumnDelemiter, QString::SkipEmptyParts).count();
+ cnt = QString(line).split(regexColumnDelimiter, QString::SkipEmptyParts).count();
} else if (cfg->_columnType == AsciiSourceConfig::Fixed) {
cnt = line.length() / cfg->_columnWidth;
} else {
@@ -756,7 +756,7 @@
if (r > 1 && !regex.exactMatch(line)) { //at desired line, find count
line = line.trimmed();
if (cfg->_columnType == AsciiSourceConfig::Custom && !columnDelimiter.isEmpty()) {
- maxcnt = QString(line).split(regexColumnDelemiter, QString::SkipEmptyParts).count();
+ maxcnt = QString(line).split(regexColumnDelimiter, QString::SkipEmptyParts).count();
} else if (cfg->_columnType == AsciiSourceConfig::Fixed) {
maxcnt = line.length() / cfg->_columnWidth;
} else {
More information about the Kst
mailing list