Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
leandromoh committed Oct 16, 2023
1 parent 55805ca commit c59bf57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion RecordParser.Benchmark/VariableLengthReaderBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void Read_VariableLength_RecordParser_Raw(bool parallel, bool quoted)
ContainsQuotedFields = quoted,

ColumnCount = 8,
Separator = ',',
Separator = ",",
StringPoolFactory = () => new InternPool().Intern
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public class VariableLengthReaderRawOptions
public int ColumnCount { get; set; }

/// <summary>
/// The character that delimits columns and separate values.
/// The text (usually one character) that delimits columns and separate values.
/// </summary>
public char Separator { get; set; }
public string Separator { get; set; }

/// <summary>
/// Options to configure parallel processing
Expand Down Expand Up @@ -106,7 +106,7 @@ private static Get BuildRaw(int collumnCount, bool hasTransform, bool trim)
public static IEnumerable<T> ReadRecordsRaw<T>(this TextReader reader, VariableLengthReaderRawOptions options, Func<Func<int, string>, T> parser)
{
var get = BuildRaw(options.ColumnCount, options.StringPoolFactory != null, options.Trim);
var sep = options.Separator.ToString();
var sep = options.Separator;

Func<IFL> func = options.ContainsQuotedFields
? () => new RowByQuote(reader, Length, sep)
Expand Down

0 comments on commit c59bf57

Please sign in to comment.