Lines Matching refs:start_index
23 int start_index) { in StringMatch() argument
24 DCHECK(0 <= start_index); in StringMatch()
25 DCHECK(start_index <= sub->length()); in StringMatch()
28 if (pattern_length == 0) return start_index; in StringMatch()
31 if (start_index + pattern_length > subject_length) return -1; in StringMatch()
46 start_index); in StringMatch()
49 start_index); in StringMatch()
54 start_index); in StringMatch()
56 return SearchString(isolate, seq_sub.ToUC16Vector(), pat_vector, start_index); in StringMatch()
143 uint32_t start_index = 0; in RUNTIME_FUNCTION() local
144 if (!index->ToArrayIndex(&start_index)) return Smi::FromInt(-1); in RUNTIME_FUNCTION()
146 RUNTIME_ASSERT(start_index <= static_cast<uint32_t>(sub->length())); in RUNTIME_FUNCTION()
147 int position = StringMatch(isolate, sub, pat, start_index); in RUNTIME_FUNCTION()
194 uint32_t start_index = 0; in RUNTIME_FUNCTION() local
195 if (!index->ToArrayIndex(&start_index)) return Smi::FromInt(-1); in RUNTIME_FUNCTION()
200 if (start_index + pat_length > sub_length) { in RUNTIME_FUNCTION()
201 start_index = sub_length - pat_length; in RUNTIME_FUNCTION()
205 return Smi::FromInt(start_index); in RUNTIME_FUNCTION()
221 start_index); in RUNTIME_FUNCTION()
224 start_index); in RUNTIME_FUNCTION()
230 start_index); in RUNTIME_FUNCTION()
233 start_index); in RUNTIME_FUNCTION()