405 |
/* Build the Boyer Moore delta. Boy that's easy compared to CW. */ |
/* Build the Boyer Moore delta. Boy that's easy compared to CW. */ |
406 |
for (i = 0; i < kwset->mind; ++i) |
for (i = 0; i < kwset->mind; ++i) |
407 |
delta[U(kwset->target[i])] = kwset->mind - (i + 1); |
delta[U(kwset->target[i])] = kwset->mind - (i + 1); |
|
kwset->mind2 = kwset->mind; |
|
408 |
/* Find the minimal delta2 shift that we might make after |
/* Find the minimal delta2 shift that we might make after |
409 |
a backwards match has failed. */ |
a backwards match has failed. */ |
410 |
c = kwset->target[kwset->mind - 1]; |
c = kwset->target[kwset->mind - 1]; |