Changeset 7085 for branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/TableFileParser.cs
- Timestamp:
- 11/28/11 13:47:28 (13 years ago)
- Location:
- branches/RegressionBenchmarks
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RegressionBenchmarks
- Property svn:ignore
-
old new 4 4 *.suo 5 5 *.vsp 6 Doxygen 6 7 Google.ProtocolBuffers-0.9.1.dll 7 8 HeuristicLab 3.3.5.1.ReSharper.user 8 9 HeuristicLab 3.3.6.0.ReSharper.user 9 10 HeuristicLab.4.5.resharper.user 11 HeuristicLab.ExtLibs.6.0.ReSharper.user 10 12 HeuristicLab.resharper.user 11 13 ProtoGen.exe … … 16 18 bin 17 19 protoc.exe 18 HeuristicLab.ExtLibs.6.0.ReSharper.user19 Doxygen
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis (added) merged: 6961,6963-6964,6974,6980,6982,7011,7017,7021,7023,7043,7049
- Property svn:mergeinfo changed
-
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/TableFileParser.cs
r6776 r7085 156 156 } else if (OccurrencesOf(charCounts, ',') > 10) { 157 157 // no points and many commas 158 int countCommaNonDigitPairs = 0; 159 for (int i = 0; i < charsRead - 1; i++) { 160 if (buffer[i] == ',' && !Char.IsDigit(buffer[i + 1])) { 161 countCommaNonDigitPairs++; 158 // count the number of tokens (chains of only digits and commas) that contain multiple comma characters 159 int tokensWithMultipleCommas = 0; 160 for (int i = 0; i < charsRead; i++) { 161 int nCommas = 0; 162 while (i < charsRead && (buffer[i] == ',' || Char.IsDigit(buffer[i]))) { 163 if (buffer[i] == ',') nCommas++; 164 i++; 162 165 } 163 } 164 if (countCommaNonDigitPairs > 10) { 166 if (nCommas > 2) tokensWithMultipleCommas++; 167 } 168 if (tokensWithMultipleCommas > 1) { 165 169 // English format (only integer values) with ',' as separator 166 170 numberFormat = NumberFormatInfo.InvariantInfo;
Note: See TracChangeset
for help on using the changeset viewer.