summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/textbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/debug/textbuf.h')
-rw-r--r--src/emu/debug/textbuf.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/emu/debug/textbuf.h b/src/emu/debug/textbuf.h
index d678dd7779a..b5c941fe6da 100644
--- a/src/emu/debug/textbuf.h
+++ b/src/emu/debug/textbuf.h
@@ -21,49 +21,49 @@ struct text_buffer;
struct text_buffer_line
{
- const char *text;
- size_t length;
+ const char *text;
+ size_t length;
};
/* helper class that makes it possible to iterate over the lines of a text_buffer */
class text_buffer_lines
{
private:
- text_buffer& m_buffer;
+ text_buffer& m_buffer;
public:
- text_buffer_lines(text_buffer& buffer) : m_buffer(buffer) { }
-
- class text_buffer_line_iterator
- {
- text_buffer& m_buffer;
- s32 m_lineptr;
- public:
- text_buffer_line_iterator(text_buffer& buffer, s32 lineptr) :
- m_buffer(buffer),
- m_lineptr(lineptr)
- {
- }
-
- /* technically this isn't a valid forward iterator, because
- * operator * doesn't return a reference
- */
- text_buffer_line operator *() const;
- text_buffer_line_iterator& operator ++();
-
- bool operator != (const text_buffer_line_iterator& rhs)
- {
- return m_lineptr != rhs.m_lineptr;
- }
- /* according to C++ spec, only != is needed; == is present for completeness. */
- bool operator == (const text_buffer_line_iterator& rhs) { return !(operator !=(rhs)); }
- };
-
- typedef text_buffer_line_iterator iterator;
- typedef text_buffer_line_iterator const iterator_const;
-
- iterator begin() const;
- iterator end() const;
+ text_buffer_lines(text_buffer& buffer) : m_buffer(buffer) { }
+
+ class text_buffer_line_iterator
+ {
+ text_buffer& m_buffer;
+ s32 m_lineptr;
+ public:
+ text_buffer_line_iterator(text_buffer& buffer, s32 lineptr) :
+ m_buffer(buffer),
+ m_lineptr(lineptr)
+ {
+ }
+
+ /* technically this isn't a valid forward iterator, because
+ * operator * doesn't return a reference
+ */
+ text_buffer_line operator *() const;
+ text_buffer_line_iterator& operator ++();
+
+ bool operator != (const text_buffer_line_iterator& rhs)
+ {
+ return m_lineptr != rhs.m_lineptr;
+ }
+ /* according to C++ spec, only != is needed; == is present for completeness. */
+ bool operator == (const text_buffer_line_iterator& rhs) { return !(operator !=(rhs)); }
+ };
+
+ typedef text_buffer_line_iterator iterator;
+ typedef text_buffer_line_iterator const iterator_const;
+
+ iterator begin() const;
+ iterator end() const;
};
/***************************************************************************