| 555 | } |
| 556 | |
| 557 | bool Reader::match(const Char* pattern, int patternLength) { |
| 558 | if (end_ - current_ < patternLength) |
| 559 | return false; |
| 560 | int index = patternLength; |
| 561 | while (index--) |
| 562 | if (current_[index] != pattern[index]) |
| 563 | return false; |
| 564 | current_ += patternLength; |
| 565 | return true; |
| 566 | } |
| 567 | |
| 568 | bool Reader::readComment() { |
| 569 | Location commentBegin = current_ - 1; |
no outgoing calls