MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / skipWhitespace

Method skipWhitespace

src/ifcparse/IfcParse.cpp:114–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114size_t IfcSpfLexer::skipWhitespace() const {
115 size_t index = 0;
116 while (!stream->eof()) {
117 char character = stream->peek();
118 if ((character == ' ' || character == '\r' || character == '\n' || character == '\t')) {
119 stream->increment();
120 ++index;
121 } else {
122 break;
123 }
124 }
125 return index;
126}
127
128size_t IfcSpfLexer::skipComment() const {
129 if (stream->eof()) {

Callers

nothing calls this directly

Calls 3

eofMethod · 0.80
peekMethod · 0.80
incrementMethod · 0.80

Tested by

no test coverage detected