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