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