You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (ch==eof&"eRule!=QUOTE_RULE_HYBRID) { target->off--; target->len++; } // test 1324 where final field has open quote but not ending quote; include the open quote like QUOTE_RULE_HYBRID
593
+
if (ch==eof&"eRule!=QUOTE_RULE_EMBEDDED_QUOTES_NOT_ESCAPED) { target->off--; target->len++; } // test 1324 where final field has open quote but not ending quote; include the open quote like QUOTE_RULE_EMBEDDED_QUOTES_NOT_ESCAPED
594
594
while(target->len>0&& ((ch[-1] ==' '&&stripWhite) ||ch[-1] =='\0')) { target->len--; ch--; } // test 1551.6; trailing whitespace in field [67,V37] == "\"\"A\"\" ST "
595
595
}
596
596
// Does end-of-field correspond to end-of-possible-NA?
@@ -1745,7 +1745,7 @@ int freadMain(freadMainArgs _args)
1745
1745
}
1746
1746
inttopNumLines=0; // the most number of lines with the same number of fields, so far
1747
1747
inttopNumFields=1; // how many fields that was, to resolve ties
1748
-
enumquoteRuletopQuoteRule=-1; // which quote rule that was
1748
+
enumquote_rule_ttopQuoteRule=-1; // which quote rule that was
1749
1749
inttopSkip=0; // how many rows to auto-skip
1750
1750
constchar*topStart=NULL;
1751
1751
@@ -1814,7 +1814,7 @@ int freadMain(freadMainArgs _args)
1814
1814
if ((thisBlockLines>topNumLines&&lastncol>1) ||// more lines wins even with fewer fields, so long as number of fields >= 2
1815
1815
(thisBlockLines==topNumLines&&
1816
1816
lastncol>topNumFields&&// when number of lines is tied, choose the sep which separates it into more columns
1817
-
(quoteRule<QUOTE_RULE_HYBRID||quoteRule <= topQuoteRule) &&// for test 1834 where every line contains a correctly quoted field contain sep
1817
+
(quoteRule<QUOTE_RULE_EMBEDDED_QUOTES_NOT_ESCAPED||quoteRule <= topQuoteRule) &&// for test 1834 where every line contains a correctly quoted field contain sep
0 commit comments