MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / discard_comments

Function discard_comments

utils/Utils.cpp:60–66  ·  view source on GitHub ↗

Advance the iterator to the first character which is not a comment * * @param[in,out] fs Stream to drop comments from */

Source from the content-addressed store, hash-verified

58 * @param[in,out] fs Stream to drop comments from
59 */
60void discard_comments(std::ifstream &fs)
61{
62 while (fs.peek() == '#')
63 {
64 fs.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
65 }
66}
67
68/* Advance the string iterator to the next character which is neither a space or a comment
69 *

Callers 2

parse_ppm_headerFunction · 0.70

Calls 1

peekMethod · 0.80

Tested by

no test coverage detected