| 112 | } |
| 113 | |
| 114 | size_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 | |
| 128 | size_t IfcSpfLexer::skipComment() const { |
| 129 | if (stream->eof()) { |