Lines Matching refs:regexp
141 function StringMatchJS(regexp) { argument
145 if (IS_REGEXP(regexp)) {
148 var lastIndex = regexp.lastIndex;
150 if (!regexp.global) return RegExpExecNoTests(regexp, subject, 0);
152 var result = %StringMatch(subject, regexp, lastMatchInfo);
154 regexp.lastIndex = 0;
158 regexp = new $RegExp(regexp);
159 return RegExpExecNoTests(regexp, subject, 0);
408 function StringReplaceGlobalRegExpWithFunction(subject, regexp, replace) { argument
419 var res = %RegExpExecMultiple(regexp,
423 regexp.lastIndex = 0;
485 function StringReplaceNonGlobalRegExpWithFunction(subject, regexp, replace) { argument
486 var matchInfo = DoRegExpExec(regexp, subject, 0);
488 regexp.lastIndex = 0;
527 var regexp;
529 regexp = %_GetFromCache(STRING_TO_REGEXP_CACHE_ID, re);
531 regexp = re;
533 regexp = new $RegExp(re);
535 var match = DoRegExpExec(regexp, TO_STRING_INLINE(this), 0);