| Index: src/string-search.h
|
| ===================================================================
|
| --- src/string-search.h (revision 14601)
|
| +++ src/string-search.h (working copy)
|
| @@ -314,7 +314,7 @@
|
| // Only preprocess at most kBMMaxShift last characters of pattern.
|
| int start = search->start_;
|
|
|
| - int* bad_char_occurence = search->bad_char_table();
|
| + int* bad_char_occurrence = search->bad_char_table();
|
| int* good_suffix_shift = search->good_suffix_shift_table();
|
|
|
| PatternChar last_char = pattern[pattern_length - 1];
|
| @@ -325,7 +325,7 @@
|
| int c;
|
| while (last_char != (c = subject[index + j])) {
|
| int shift =
|
| - j - CharOccurrence(bad_char_occurence, c);
|
| + j - CharOccurrence(bad_char_occurrence, c);
|
| index += shift;
|
| if (index > subject_length - pattern_length) {
|
| return -1;
|
| @@ -338,12 +338,12 @@
|
| // we have matched more than our tables allow us to be smart about.
|
| // Fall back on BMH shift.
|
| index += pattern_length - 1
|
| - - CharOccurrence(bad_char_occurence,
|
| + - CharOccurrence(bad_char_occurrence,
|
| static_cast<SubjectChar>(last_char));
|
| } else {
|
| int gs_shift = good_suffix_shift[j + 1];
|
| int bc_occ =
|
| - CharOccurrence(bad_char_occurence, c);
|
| + CharOccurrence(bad_char_occurrence, c);
|
| int shift = j - bc_occ;
|
| if (gs_shift > shift) {
|
| shift = gs_shift;
|
|
|