Home | History | Annotate | Download | only in src

Lines Matching refs:regexp

182 function StringMatch(regexp) {
188 if (IS_REGEXP(regexp)) {
189 if (!regexp.global) return RegExpExecNoTests(regexp, subject, 0);
190 %_Log('regexp', 'regexp-match,%0S,%1r', [subject, regexp]);
191 // lastMatchInfo is defined in regexp.js.
192 return %StringMatch(subject, regexp, lastMatchInfo);
194 // Non-regexp argument.
195 regexp = new $RegExp(regexp);
196 return RegExpExecNoTests(regexp, subject, 0);
212 // needle is a string rather than a regexp. In this case we can't update
214 // RegExp object.
228 %_Log('regexp', 'regexp-replace,%0r,%1S', [search, subject]);
408 function StringReplaceGlobalRegExpWithFunction(subject, regexp, replace) {
419 var res = %RegExpExecMultiple(regexp,
423 regexp.lastIndex = 0;
460 // Use the apply argument as backing for global RegExp properties.
476 function StringReplaceNonGlobalRegExpWithFunction(subject, regexp, replace) {
477 var matchInfo = DoRegExpExec(regexp, subject, 0);
520 var regexp;
522 regexp = %_GetFromCache(STRING_TO_REGEXP_CACHE_ID, re);
524 regexp = re;
526 regexp = new $RegExp(re);
528 var match = DoRegExpExec(regexp, TO_STRING_INLINE(this), 0);
619 %_Log('regexp', 'regexp-split,%0S,%1r', [subject, separator]);