Lines Matching refs:if
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 if (IS_REGEXP(pattern)) {
38 if (!IS_UNDEFINED(flags)) {
57 if (global) {
63 if (ignoreCase) {
69 if (multiline) {
87 if (%_IsConstructCall()) {
91 if (IS_REGEXP(pattern) && IS_UNDEFINED(flags)) {
110 if (this == $RegExp.prototype) {
115 if (IS_UNDEFINED(pattern) && %_ArgumentsLength() != 0) {
125 if (result !== null) lastMatchInfoOverride = null;
135 if (start + 1 == end) {
144 if (end != -1) {
145 if (start + 1 == end) {
163 if (matchInfo !== null) {
172 if (!IS_REGEXP(this)) {
181 // algorithm, step 5) even if the value is discarded for non-global RegExps.
185 if (global) {
186 if (i < 0 || i > string.length) {
198 if (matchIndices === null) {
199 if (global) this.lastIndex = 0;
205 if (global) {
221 if (!IS_REGEXP(this)) {
230 // algorithm, step 5) even if the value is discarded for non-global RegExps.
233 if (this.global) {
234 if (i < 0 || i > string.length) {
241 if (matchIndices === null) {
254 if (%_StringCharCodeAt(regexp.source, 0) == 46 && // '.'
262 if (matchIndices === null) return false;
269 if (!%_ObjectEquals(regexp_key, regexp)) {
281 // If this.source is an empty string, output /(?:)/.
286 if (this.global) result += 'g';
287 if (this.ignoreCase) result += 'i';
288 if (this.multiline) result += 'm';
298 if (lastMatchInfoOverride !== null) {
309 if (lastMatchInfoOverride) {
311 if (override.length <= 3) return '';
315 if (length <= 2) return ''; // There were no captures.
317 // last pair (after the first pair) of elements of the capture array even if
322 if (start != -1 && end != -1) {
332 if (!lastMatchInfoOverride) {
347 if (!lastMatchInfoOverride) {
365 if (lastMatchInfoOverride) {
366 if (n < lastMatchInfoOverride.length - 2) return lastMatchInfoOverride[n];
370 if (index >= NUMBER_OF_CAPTURES(lastMatchInfo)) return '';
373 if (matchStart == -1 || matchEnd == -1) return '';