| 360 | |
| 361 | |
| 362 | bool |
| 363 | Reader::match( Location pattern, |
| 364 | int patternLength ) |
| 365 | { |
| 366 | if ( end_ - current_ < patternLength ) |
| 367 | return false; |
| 368 | int index = patternLength; |
| 369 | while ( index-- ) |
| 370 | if ( current_[index] != pattern[index] ) |
| 371 | return false; |
| 372 | current_ += patternLength; |
| 373 | return true; |
| 374 | } |
| 375 | |
| 376 | |
| 377 | bool |