| 369 |
int start = 0; |
int start = 0; |
| 370 |
int lastend = -1; |
int lastend = -1; |
| 371 |
|
|
| 372 |
for (; start <= static_cast<int>(str->length()); count++) { |
while (start <= static_cast<int>(str->length())) { |
| 373 |
int matches = TryMatch(*str, start, UNANCHORED, vec, kVecSize); |
int matches = TryMatch(*str, start, UNANCHORED, vec, kVecSize); |
| 374 |
if (matches <= 0) |
if (matches <= 0) |
| 375 |
break; |
break; |
| 409 |
Rewrite(&out, rewrite, *str, vec, matches); |
Rewrite(&out, rewrite, *str, vec, matches); |
| 410 |
start = matchend; |
start = matchend; |
| 411 |
lastend = matchend; |
lastend = matchend; |
| 412 |
// count++; // Removed by PH 19-Dec-2007: duplicate count increment |
count++; |
| 413 |
} |
} |
| 414 |
} |
} |
| 415 |
|
|