Lines Matching defs:start_index
17 // Caller must ensure that 0 <= start_index <= sub->length(),
18 // and should check that pat->length() + start_index <= sub->length().
20 int start_index) {
21 DCHECK(0 <= start_index);
22 DCHECK(start_index <= sub->length());
25 if (pattern_length == 0) return start_index;
28 if (start_index + pattern_length > subject_length) return -1;
43 start_index);
46 start_index);
51 start_index);
53 return SearchString(isolate, seq_sub.ToUC16Vector(), pat_vector, start_index);
140 uint32_t start_index = 0;
141 if (!index->ToArrayIndex(&start_index)) return Smi::FromInt(-1);
143 CHECK(start_index <= static_cast<uint32_t>(sub->length()));
144 int position = StringMatch(isolate, sub, pat, start_index);
191 uint32_t start_index = 0;
192 if (!index->ToArrayIndex(&start_index)) return Smi::FromInt(-1);
197 if (start_index + pat_length > sub_length) {
198 start_index = sub_length - pat_length;
202 return Smi::FromInt(start_index);
218 start_index);
221 start_index);
227 start_index);
230 start_index);