Lines Matching refs:subject
38 // the subject string for the last successful match.
41 "", // Last subject.
307 var subject = TO_STRING(string);
310 var length = subject.length;
315 if (DoRegExpExec(separator, subject, 0, 0) !== null) return [];
316 return [subject];
327 result[result.length] = %_SubString(subject, currentIndex, length);
331 var matchInfo = DoRegExpExec(separator, subject, startIndex);
333 result[result.length] = %_SubString(subject, currentIndex, length);
344 result[result.length] = %_SubString(subject, currentIndex, startMatch);
353 result[result.length] = %_SubString(subject, start, end);
376 var subject = TO_STRING(string);
378 if (!REGEXP_GLOBAL(this)) return RegExpExecNoTests(this, subject, 0);
380 var result = %StringMatch(subject, this, RegExpLastMatchInfo);
400 // on the captures array of the last successful match and the subject string
428 var subject;
430 subject = LAST_SUBJECT(RegExpLastMatchInfo);
431 return %_SubString(subject, 0, start_index);
437 var subject;
439 subject = LAST_SUBJECT(RegExpLastMatchInfo);
440 return %_SubString(subject, start_index, subject.length);