| 482 | } |
| 483 | |
| 484 | bool Reader::match(Location pattern, int patternLength) { |
| 485 | if (end_ - current_ < patternLength) |
| 486 | return false; |
| 487 | int index = patternLength; |
| 488 | while (index--) |
| 489 | if (current_[index] != pattern[index]) |
| 490 | return false; |
| 491 | current_ += patternLength; |
| 492 | return true; |
| 493 | } |
| 494 | |
| 495 | bool Reader::readComment() { |
| 496 | Location commentBegin = current_ - 1; |
no outgoing calls
no test coverage detected