[#util-LineReader]
= xref:util.adoc[util]::LineReader
:relfileprefix: ../
:mrdocs:

Reads a character buffer line by line or in fixed&hyphen;length chunks&period;

== Synopsis

Declared in `&lt;util&sol;string&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class LineReader;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:util/LineReader/2constructor.adoc[`LineReader`]         [.small]#[constructor]#
| Construct a reader over str that limits lines to max&lowbar;line&lowbar;length bytes&period;
| xref:util/LineReader/Consumed.adoc[`Consumed`] 
| Returns number of bytes already read from buffer
| xref:util/LineReader/ReadLength.adoc[`ReadLength`] 
| Returns string from current iterator position of specified length if possible and advances iterator on success&period; May exceed max&lowbar;line&lowbar;length but will not read past end of buffer&period;
| xref:util/LineReader/ReadLine.adoc[`ReadLine`] 
| Returns a string from current iterator position up to (but not including) next and advances iterator to the character following the on success&period; Will not return a line longer than max&lowbar;line&lowbar;length&period;
| xref:util/LineReader/Remaining.adoc[`Remaining`] 
| Returns remaining size of bytes in buffer
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
