4785 |
|
|
4786 |
if (anchored || start_match > end_subject) break; |
if (anchored || start_match > end_subject) break; |
4787 |
|
|
4788 |
/* If we have just passed a CR and the newline option is CRLF or ANY or |
/* If we have just passed a CR and we are now at a LF, and the pattern does |
4789 |
ANYCRLF, and we are now at a LF, advance the match position by one more |
not contain any explicit matches for \r or \n, and the newline option is CRLF |
4790 |
character. */ |
or ANY or ANYCRLF, advance the match position by one more character. */ |
4791 |
|
|
4792 |
if (start_match[-1] == '\r' && |
if (start_match[-1] == '\r' && |
4793 |
(md->nltype == NLTYPE_ANY || |
start_match < end_subject && |
4794 |
md->nltype == NLTYPE_ANYCRLF || |
*start_match == '\n' && |
4795 |
md->nllen == 2) && |
(re->options & PCRE_HASCRORLF) == 0 && |
4796 |
start_match < end_subject && |
(md->nltype == NLTYPE_ANY || |
4797 |
*start_match == '\n') |
md->nltype == NLTYPE_ANYCRLF || |
4798 |
|
md->nllen == 2)) |
4799 |
start_match++; |
start_match++; |
4800 |
|
|
4801 |
} /* End of for(;;) "bumpalong" loop */ |
} /* End of for(;;) "bumpalong" loop */ |