| 473 | } |
| 474 | |
| 475 | bool Reader::match(Location pattern, int patternLength) { |
| 476 | if (end_ - current_ < patternLength) |
| 477 | return false; |
| 478 | int index = patternLength; |
| 479 | while (index--) |
| 480 | if (current_[index] != pattern[index]) |
| 481 | return false; |
| 482 | current_ += patternLength; |
| 483 | return true; |
| 484 | } |
| 485 | |
| 486 | bool Reader::readComment() { |
| 487 | Location commentBegin = current_ - 1; |
no outgoing calls
no test coverage detected