Home | History | Annotate | Download | only in src

Lines Matching refs:regexp

156 function StringMatch(regexp) {
158 if (IS_REGEXP(regexp)) {
159 if (!regexp.global) return RegExpExecNoTests(regexp, subject, 0);
160 %_Log('regexp', 'regexp-match,%0S,%1r', [subject, regexp]);
161 // lastMatchInfo is defined in regexp.js.
162 return %StringMatch(subject, regexp, lastMatchInfo);
164 // Non-regexp argument.
165 regexp = new $RegExp(regexp);
166 return RegExpExecNoTests(regexp, subject, 0);
182 // needle is a string rather than a regexp. In this case we can't update
184 // RegExp object.
194 %_Log('regexp', 'regexp-replace,%0r,%1S', [search, subject]);
364 function StringReplaceGlobalRegExpWithFunction(subject, regexp, replace) {
375 var res = %RegExpExecMultiple(regexp,
379 regexp.lastIndex = 0;
415 // Use the apply argument as backing for global RegExp properties.
431 function StringReplaceNonGlobalRegExpWithFunction(subject, regexp, replace) {
432 var matchInfo = DoRegExpExec(regexp, subject, 0);
470 var regexp;
472 regexp = %_GetFromCache(STRING_TO_REGEXP_CACHE_ID, re);
474 regexp = re;
476 regexp = new $RegExp(re);
478 var match = DoRegExpExec(regexp, TO_STRING_INLINE(this), 0);
549 %_Log('regexp', 'regexp-split,%0S,%1r', [subject, separator]);