| 161 | } |
| 162 | |
| 163 | static void SkipNewLine(IStringReader* reader) |
| 164 | { |
| 165 | codepoint_t codepoint; |
| 166 | while (reader->TryPeek(&codepoint)) |
| 167 | { |
| 168 | if (IsNewLine(codepoint)) |
| 169 | { |
| 170 | reader->Skip(); |
| 171 | } |
| 172 | else |
| 173 | { |
| 174 | break; |
| 175 | } |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | static void SkipToEndOfLine(IStringReader* reader) |
| 180 | { |