mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix ParentablePath issues; fix parse logging
This commit is contained in:
@@ -30,6 +30,16 @@ namespace SabreTools.Library.IO
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Contents of the current line, unprocessed
|
||||
/// </summary>
|
||||
public string CurrentLine { get; private set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Get the current line number
|
||||
/// </summary>
|
||||
public long LineNumber { get; private set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Assume the first row is a header
|
||||
/// </summary>
|
||||
@@ -45,11 +55,6 @@ namespace SabreTools.Library.IO
|
||||
/// </summary>
|
||||
public List<string> Line { get; private set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Get the current line number
|
||||
/// </summary>
|
||||
public long LineNumber { get; private set; } = -1;
|
||||
|
||||
/// <summary>
|
||||
/// Assume that values are wrapped in quotes
|
||||
/// </summary>
|
||||
@@ -104,6 +109,7 @@ namespace SabreTools.Library.IO
|
||||
return false;
|
||||
|
||||
string fullLine = sr.ReadLine();
|
||||
CurrentLine = fullLine;
|
||||
LineNumber++;
|
||||
|
||||
// If we have quotes, we need to split specially
|
||||
|
||||
Reference in New Issue
Block a user