| 2232 |
if (g_notempty != 0) |
if (g_notempty != 0) |
| 2233 |
{ |
{ |
| 2234 |
int onechar = 1; |
int onechar = 1; |
| 2235 |
|
unsigned int obits = ((real_pcre *)re)->options; |
| 2236 |
use_offsets[0] = start_offset; |
use_offsets[0] = start_offset; |
| 2237 |
if ((((real_pcre *)re)->options & PCRE_NEWLINE_BITS) == |
if ((obits & PCRE_NEWLINE_BITS) == 0) |
| 2238 |
PCRE_NEWLINE_ANY && |
{ |
| 2239 |
|
int d; |
| 2240 |
|
(void)pcre_config(PCRE_CONFIG_NEWLINE, &d); |
| 2241 |
|
obits = (d == '\r')? PCRE_NEWLINE_CR : |
| 2242 |
|
(d == '\n')? PCRE_NEWLINE_LF : |
| 2243 |
|
(d == ('\r'<<8 | '\n'))? PCRE_NEWLINE_CRLF : |
| 2244 |
|
(d == -1)? PCRE_NEWLINE_ANY : 0; |
| 2245 |
|
} |
| 2246 |
|
if ((obits & PCRE_NEWLINE_BITS) == PCRE_NEWLINE_ANY && |
| 2247 |
start_offset < len - 1 && |
start_offset < len - 1 && |
| 2248 |
bptr[start_offset] == '\r' && |
bptr[start_offset] == '\r' && |
| 2249 |
bptr[start_offset+1] == '\n') |
bptr[start_offset+1] == '\n') |