fix: parse files with '\r' symbols as line ending correctly

This commit is contained in:
Simon Gene Gottlieb
2024-08-22 10:29:29 +02:00
committed by Jesse Beder
parent b38ac5b55f
commit ee9c4d19be
3 changed files with 35 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ class Stream {
Mark m_mark;
CharacterSet m_charSet;
char m_lineEndingSymbol{}; // 0 means it is not determined yet, must be '\n' or '\r'
mutable std::deque<char> m_readahead;
unsigned char* const m_pPrefetched;
mutable size_t m_nPrefetchedAvailable;