Lines Matching defs:index
80 int Search(base::Vector<const SubjectChar> subject, int index) {
81 return strategy_(this, subject, index);
200 int index) {
208 for (int i = index; i < max_n; ++i) {
215 int pos = index;
237 base::Vector<const SubjectChar> subject, int index) {
245 return FindFirstCharacter(search->pattern_, subject, index);
270 base::Vector<const SubjectChar> subject, int index) {
274 int i = index;
309 int index = start_index;
311 while (index <= subject_length - pattern_length) {
314 while (last_char != (c = subject[index + j])) {
316 index += shift;
317 if (index > subject_length - pattern_length) {
321 while (j >= 0 && pattern[j] == (c = subject[index + j])) j--;
323 return index;
327 index += pattern_length - 1 -
337 index += shift;
430 int index = start_index; // No matches found prior to this index.
431 while (index <= subject_length - pattern_length) {
434 while (last_char != (subject_char = subject[index + j])) {
437 index += shift;
439 if (index > subject_length - pattern_length) {
444 while (j >= 0 && pattern[j] == (subject[index + j])) j--;
446 return index;
448 index += last_char_shift;
457 return BoyerMooreSearch(search, subject, index);
499 base::Vector<const SubjectChar> subject, int index) {
509 for (int i = index, n = subject.length() - pattern_length; i <= n; i++) {