| 519 | } |
| 520 | |
| 521 | bool Reader::match(Location pattern, int patternLength) { |
| 522 | if (end_ - current_ < patternLength) |
| 523 | return false; |
| 524 | int index = patternLength; |
| 525 | while (index--) |
| 526 | if (current_[index] != pattern[index]) |
| 527 | return false; |
| 528 | current_ += patternLength; |
| 529 | return true; |
| 530 | } |
| 531 | |
| 532 | bool Reader::readComment() { |
| 533 | Location commentBegin = current_ - 1; |
no outgoing calls
no test coverage detected