56 while( ( s =
reader.ReadLine() ) !=
nullptr )
58 if( !strchr(
"#\n\r", s[0] ) )
94 while( ( s =
reader.ReadLine() ) !=
nullptr )
96 while( s !=
nullptr && strchr(
" \t", *s ) )
99 if( s !=
nullptr && !strchr(
"#\n\r", *s ) )
char * ReadLine() override
Read a line of text into the buffer and increments the line number counter.
FILTER_READER(LINE_READER &aReader)
Does not take ownership over aReader so will not destroy it.
LINE_READER(unsigned aMaxLineLength=LINE_READER_LINE_DEFAULT_MAX)
Build a line reader and fixes the length of the maximum supported line length to aMaxLineLength.
unsigned m_length
no. bytes in line before trailing nul.
char * m_line
the read line of UTF8 text
WHITESPACE_FILTER_READER(LINE_READER &aReader)
Do not take ownership over aReader, so will not destroy it.
char * ReadLine() override
Read a line of text into the buffer and increments the line number counter.
~WHITESPACE_FILTER_READER()