| 500 | } |
| 501 | |
| 502 | bool Reader::match(Location pattern, int patternLength) { |
| 503 | if (end_ - current_ < patternLength) |
| 504 | return false; |
| 505 | int index = patternLength; |
| 506 | while (index--) |
| 507 | if (current_[index] != pattern[index]) |
| 508 | return false; |
| 509 | current_ += patternLength; |
| 510 | return true; |
| 511 | } |
| 512 | |
| 513 | bool Reader::readComment() { |
| 514 | Location commentBegin = current_ - 1; |
no outgoing calls
no test coverage detected