Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1824)

Unified Diff: src/string-search.h

Issue 15012016: small misspelling fixes. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/spaces.cc ('k') | src/third_party/vtune/jitprofiling.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/spaces.cc ('k') | src/third_party/vtune/jitprofiling.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698