Skip to content

Commit aa1b169

Browse files
author
Vyacheslav Brover
committed
TextTable(,,headerP,)
1 parent 808bdea commit aa1b169

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

tsv/tsv_comp.cpp

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ struct ThisApplication final : Application
118118
const double diff_min = str2<double> (getArg ("diff_min"));
119119

120120

121-
const TextTable t1 (fName1, noString, 100000); // PAR
121+
const TextTable t1 (fName1, noString, true, 100000); // PAR
122122
cout << "# " << fName1 << " rows: " << t1. rows. size () << endl;
123123
t1. qc ();
124124

125-
const TextTable t2 (fName2, noString, 100000); // PAR
125+
const TextTable t2 (fName2, noString, true, 100000); // PAR
126126
cout << "# " << fName2 << " rows: " << t2. rows. size () << endl;
127127
t2. qc ();
128128

@@ -164,7 +164,13 @@ struct ThisApplication final : Application
164164
{
165165
const string& val2 = (*row2) [commonCols2 [i]];
166166
if (! val2. empty ())
167-
diffF << "DELETE" << '\t' << t2. header [commonCols2 [i]]. name << '\t' << '\t' << val2 << '\t' << '\t' << it. first << '\n';
167+
diffF << "DELETE"
168+
<< '\t' << t2. header [commonCols2 [i]]. name
169+
<< '\t'
170+
<< '\t' << val2
171+
<< '\t'
172+
<< '\t' << it. first
173+
<< '\n';
168174
}
169175
}
170176
cout << "# Rows deleted: " << deleted << endl;
@@ -196,7 +202,13 @@ struct ThisApplication final : Application
196202
continue;
197203
diffS = to_string (diff);
198204
}
199-
diffF << "REPLACE" << '\t' << t1. header [commonCols1 [i]]. name << '\t' << val1 << '\t' << val2 << '\t' << diffS << '\t' << it. first << '\n';
205+
diffF << "REPLACE"
206+
<< '\t' << t1. header [commonCols1 [i]]. name
207+
<< '\t' << val1
208+
<< '\t' << val2
209+
<< '\t' << diffS
210+
<< '\t' << it. first
211+
<< '\n';
200212
}
201213
}
202214
}

0 commit comments

Comments
 (0)