Lines Matching defs:searchString

1076     // Let searchString be ToString(searchValue).
1077 JSHandle<EcmaString> searchString = JSTaggedValue::ToString(thread, searchTag);
1078 // ReturnIfAbrupt(searchString).
1088 // Search string for the first occurrence of searchString and let pos be the index within string of the first code
1089 // unit of the matched substring and let matched be searchString. If no occurrences of searchString were found,
1091 int32_t pos = EcmaStringAccessor::IndexOf(ecmaVm, thisString, searchString);
1104 info->SetCallArg(searchString.GetTaggedValue(), JSTaggedValue(pos), thisString.GetTaggedValue());
1114 replHandle.Update(GetSubstitution(thread, searchString, thisString, pos, capturesList, undefined, replacement));
1119 int32_t tailPos = pos + static_cast<int32_t>(EcmaStringAccessor(searchString).GetLength());
1199 // 4. Let searchString be ? ToString(searchValue).
1200 JSHandle<EcmaString> searchString = JSTaggedValue::ToString(thread, searchTag);
1210 // 7. Let searchLength be the length of searchString.
1212 int32_t searchLength = static_cast<int32_t>(EcmaStringAccessor(searchString).GetLength());
1216 // 10. Let position be ! StringIndexOf(string, searchString, 0).
1217 int32_t pos = EcmaStringAccessor::IndexOf(ecmaVm, thisString, searchString);
1229 info->SetCallArg(searchString.GetTaggedValue(), JSTaggedValue(pos), thisString.GetTaggedValue());
1239 replHandle.Update(GetSubstitution(thread, searchString, thisString, pos,
1256 pos = EcmaStringAccessor::IndexOf(ecmaVm, thisString, searchString, pos + advanceBy);