| 936 |
(void)pcre_config(PCRE_CONFIG_UNICODE_PROPERTIES, &rc); |
(void)pcre_config(PCRE_CONFIG_UNICODE_PROPERTIES, &rc); |
| 937 |
printf(" %sUnicode properties support\n", rc? "" : "No "); |
printf(" %sUnicode properties support\n", rc? "" : "No "); |
| 938 |
(void)pcre_config(PCRE_CONFIG_NEWLINE, &rc); |
(void)pcre_config(PCRE_CONFIG_NEWLINE, &rc); |
| 939 |
printf(" Newline sequence is %s\n", (rc == '\r')? "CR" : |
/* Note that these values are always the ASCII values, even |
| 940 |
(rc == '\n')? "LF" : (rc == ('\r'<<8 | '\n'))? "CRLF" : |
in EBCDIC environments. CR is 13 and NL is 10. */ |
| 941 |
|
printf(" Newline sequence is %s\n", (rc == 13)? "CR" : |
| 942 |
|
(rc == 10)? "LF" : (rc == (13<<8 | 10))? "CRLF" : |
| 943 |
(rc == -2)? "ANYCRLF" : |
(rc == -2)? "ANYCRLF" : |
| 944 |
(rc == -1)? "ANY" : "???"); |
(rc == -1)? "ANY" : "???"); |
| 945 |
(void)pcre_config(PCRE_CONFIG_BSR, &rc); |
(void)pcre_config(PCRE_CONFIG_BSR, &rc); |
| 2382 |
{ |
{ |
| 2383 |
int d; |
int d; |
| 2384 |
(void)pcre_config(PCRE_CONFIG_NEWLINE, &d); |
(void)pcre_config(PCRE_CONFIG_NEWLINE, &d); |
| 2385 |
obits = (d == '\r')? PCRE_NEWLINE_CR : |
/* Note that these values are always the ASCII ones, even in |
| 2386 |
(d == '\n')? PCRE_NEWLINE_LF : |
EBCDIC environments. CR = 13, NL = 10. */ |
| 2387 |
(d == ('\r'<<8 | '\n'))? PCRE_NEWLINE_CRLF : |
obits = (d == 13)? PCRE_NEWLINE_CR : |
| 2388 |
|
(d == 10)? PCRE_NEWLINE_LF : |
| 2389 |
|
(d == (13<<8 | 10))? PCRE_NEWLINE_CRLF : |
| 2390 |
(d == -2)? PCRE_NEWLINE_ANYCRLF : |
(d == -2)? PCRE_NEWLINE_ANYCRLF : |
| 2391 |
(d == -1)? PCRE_NEWLINE_ANY : 0; |
(d == -1)? PCRE_NEWLINE_ANY : 0; |
| 2392 |
} |
} |