<trclass="memdesc:a29c137ed407ee56238fbf74ca2e3e8fc"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The result of a <aclass="el"href="classcrashpad_1_1DelimitedFileReader.html#a6ec6693aed8fd7d5f2176fae5dd2bd27"title="Reads a single field from the file. ">GetDelim()</a> or <aclass="el"href="classcrashpad_1_1DelimitedFileReader.html#ab77aae5c11bba81e7ff9713d744eb875"title="Reads a single line from the file. ">GetLine()</a> call. <ahref="classcrashpad_1_1DelimitedFileReader.html#a29c137ed407ee56238fbf74ca2e3e8fc">More...</a><br/></td></tr>
<trclass="memdesc:a6ec6693aed8fd7d5f2176fae5dd2bd27"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Reads a single field from the file. <ahref="#a6ec6693aed8fd7d5f2176fae5dd2bd27">More...</a><br/></td></tr>
<trclass="memdesc:ab77aae5c11bba81e7ff9713d744eb875"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Reads a single line from the file. <ahref="#ab77aae5c11bba81e7ff9713d744eb875">More...</a><br/></td></tr>
<divclass="textblock"><p>Reads a file one field or line at a time. </p>
<p>The file is interpreted as a series of fields separated by delimiter characters. When the delimiter character is the newline character (<code>'\n'</code>), the file is interpreted as a series of lines.</p>
<p>It is safe to mix <aclass="el"href="classcrashpad_1_1DelimitedFileReader.html#a6ec6693aed8fd7d5f2176fae5dd2bd27"title="Reads a single field from the file. ">GetDelim()</a> and <aclass="el"href="classcrashpad_1_1DelimitedFileReader.html#ab77aae5c11bba81e7ff9713d744eb875"title="Reads a single line from the file. ">GetLine()</a> calls, if appropriate for the format being interpreted.</p>
<p>This is a replacement for the standard library’s <code>getdelim()</code> and <code>getline()</code> functions, adapted to work with <aclass="el"href="classcrashpad_1_1FileReaderInterface.html"title="An interface to read to files and other file-like objects with semantics matching the underlying plat...">FileReaderInterface</a> objects instead of <code>FILE*</code> streams. </p>
<p>The result of a <aclass="el"href="classcrashpad_1_1DelimitedFileReader.html#a6ec6693aed8fd7d5f2176fae5dd2bd27"title="Reads a single field from the file. ">GetDelim()</a> or <aclass="el"href="classcrashpad_1_1DelimitedFileReader.html#ab77aae5c11bba81e7ff9713d744eb875"title="Reads a single line from the file. ">GetLine()</a> call. </p>
<tableclass="fieldtable">
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="a29c137ed407ee56238fbf74ca2e3e8fcae3587c730cc1aa530fa4ddc9c4204e97"></a>kError </td><tdclass="fielddoc"><p>An error occurred, and a message was logged. </p>
</td></tr>
<tr><tdclass="fieldname"><aid="a29c137ed407ee56238fbf74ca2e3e8fca8c632159fa131f09d04f94e3cbcd8782"></a>kSuccess </td><tdclass="fielddoc"><p>A field or line was read from the file. </p>
</td></tr>
<tr><tdclass="fieldname"><aid="a29c137ed407ee56238fbf74ca2e3e8fca81ee170e2d4ce75d1ff04872b0a4fe04"></a>kEndOfFile </td><tdclass="fielddoc"><p>The end of the file was encountered. </p>
</td></tr>
</table>
</div>
</div>
<h2class="groupheader">Member Function Documentation</h2>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">delimiter</td><td>The delimiter character that terminates the field. It is safe to call this method multiple times while changing the value of this parameter, if appropriate for the format being interpreted. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">field</td><td>The field read from the file. This parameter will include the field’s terminating delimiter character unless the field was at the end of the file and was read without such a character. This parameter will not be empty.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>a <aclass="el"href="classcrashpad_1_1DelimitedFileReader.html#a29c137ed407ee56238fbf74ca2e3e8fc"title="The result of a GetDelim() or GetLine() call. ">Result</a> value. <em>field</em> is only valid when <aclass="el"href="classcrashpad_1_1DelimitedFileReader.html#a29c137ed407ee56238fbf74ca2e3e8fca8c632159fa131f09d04f94e3cbcd8782"title="A field or line was read from the file. ">Result::kSuccess</a> is returned. </dd></dl>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">line</td><td>The line read from the file. This parameter will include the line terminating delimiter character unless the line was at the end of the file and was read without such a character. This parameter will not be empty.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>a <aclass="el"href="classcrashpad_1_1DelimitedFileReader.html#a29c137ed407ee56238fbf74ca2e3e8fc"title="The result of a GetDelim() or GetLine() call. ">Result</a> value. <em>line</em> is only valid when <aclass="el"href="classcrashpad_1_1DelimitedFileReader.html#a29c137ed407ee56238fbf74ca2e3e8fca8c632159fa131f09d04f94e3cbcd8782"title="A field or line was read from the file. ">Result::kSuccess</a> is returned. </dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>util/file/delimited_file_reader.h</li>
<li>util/file/delimited_file_reader.cc</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hrclass="footer"/><addressclass="footer"><small>
Generated by  <ahref="http://www.doxygen.org/index.html">