| 569 | } |
| 570 | |
| 571 | bool Reader::match(Location pattern, int patternLength) { |
| 572 | if (end_ - current_ < patternLength) |
| 573 | return false; |
| 574 | int index = patternLength; |
| 575 | while (index--) |
| 576 | if (current_[index] != pattern[index]) |
| 577 | return false; |
| 578 | current_ += patternLength; |
| 579 | return true; |
| 580 | } |
| 581 | |
| 582 | bool Reader::readComment() { |
| 583 | Location commentBegin = current_ - 1; |