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

Function discard_comments_and_spaces

utils/Utils.cpp:72–85  ·  view source on GitHub ↗

Advance the string iterator to the next character which is neither a space or a comment * * @param[in,out] fs Stream to drop comments from */

Source from the content-addressed store, hash-verified

70 * @param[in,out] fs Stream to drop comments from
71 */
72void discard_comments_and_spaces(std::ifstream &fs)
73{
74 while (true)
75 {
76 discard_comments(fs);
77
78 if (isspace(fs.peek()) == 0)
79 {
80 break;
81 }
82
83 fs.ignore(1);
84 }
85}
86} // namespace
87
88#ifndef BENCHMARK_EXAMPLES

Callers 1

parse_ppm_headerFunction · 0.70

Calls 2

peekMethod · 0.80
discard_commentsFunction · 0.70

Tested by

no test coverage detected