| 550 | } |
| 551 | |
| 552 | bool Reader::match(Location pattern, int patternLength) { |
| 553 | if (end_ - current_ < patternLength) |
| 554 | return false; |
| 555 | int index = patternLength; |
| 556 | while (index--) |
| 557 | if (current_[index] != pattern[index]) |
| 558 | return false; |
| 559 | current_ += patternLength; |
| 560 | return true; |
| 561 | } |
| 562 | |
| 563 | bool Reader::readComment() { |
| 564 | Location commentBegin = current_ - 1; |