add TextLoader::get_eol_at_eof()
This commit is contained in:
1 parent
500a6891d4
commit
89e8dc5de3
3 files changed
+7
No files matched your search
@@ -6,6 +6,7 @@ TextLoader::TextLoader()
|
||||
{
|
||||
m_line_endings = LINE_ENDING_LF;
|
||||
m_lines = NULL;
|
||||
m_eol_at_eof = true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -32,6 +32,7 @@ public:
|
||||
int get_line_endings() { return m_line_endings; }
|
||||
auto begin() { return m_lines->begin(); }
|
||||
auto end() { return m_lines->end(); }
|
||||
bool get_eol_at_eof() { return m_eol_at_eof; }
|
||||
|
||||
typedef std::pair<uint8_t *, uint32_t> LineIndexPair;
|
||||
typedef std::list<LineIndexPair> LineIndexPairList;
|
||||
@@ -39,6 +40,7 @@ public:
|
||||
|
||||
protected:
|
||||
int m_line_endings;
|
||||
bool m_eol_at_eof;
|
||||
LineIndexPairListRef m_lines;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user