| 481 |
|
|
| 482 |
#define PCRE_IMS (PCRE_CASELESS|PCRE_MULTILINE|PCRE_DOTALL) |
#define PCRE_IMS (PCRE_CASELESS|PCRE_MULTILINE|PCRE_DOTALL) |
| 483 |
|
|
| 484 |
/* Private options flags start at the most significant end of the four bytes. |
/* Private flags containing information about the compiled regex. They used to |
| 485 |
The public options defined in pcre.h start at the least significant end. Make |
live at the top end of the options word, but that got almost full, so now they |
| 486 |
sure they don't overlap! The bits are getting a bit scarce now -- when we run |
are in a 16-bit flags word. */ |
| 487 |
out, there is a dummy word in the structure that could be used for the private |
|
| 488 |
bits. */ |
#define PCRE_NOPARTIAL 0x0001 /* can't use partial with this regex */ |
| 489 |
|
#define PCRE_FIRSTSET 0x0002 /* first_byte is set */ |
| 490 |
#define PCRE_NOPARTIAL 0x80000000 /* can't use partial with this regex */ |
#define PCRE_REQCHSET 0x0004 /* req_byte is set */ |
| 491 |
#define PCRE_FIRSTSET 0x40000000 /* first_byte is set */ |
#define PCRE_STARTLINE 0x0008 /* start after \n for multiline */ |
| 492 |
#define PCRE_REQCHSET 0x20000000 /* req_byte is set */ |
#define PCRE_JCHANGED 0x0010 /* j option used in regex */ |
| 493 |
#define PCRE_STARTLINE 0x10000000 /* start after \n for multiline */ |
#define PCRE_HASCRORLF 0x0020 /* explicit \r or \n in pattern */ |
|
#define PCRE_JCHANGED 0x08000000 /* j option changes within regex */ |
|
| 494 |
|
|
| 495 |
/* Options for the "extra" block produced by pcre_study(). */ |
/* Options for the "extra" block produced by pcre_study(). */ |
| 496 |
|
|
| 506 |
(PCRE_CASELESS|PCRE_EXTENDED|PCRE_ANCHORED|PCRE_MULTILINE| \ |
(PCRE_CASELESS|PCRE_EXTENDED|PCRE_ANCHORED|PCRE_MULTILINE| \ |
| 507 |
PCRE_DOTALL|PCRE_DOLLAR_ENDONLY|PCRE_EXTRA|PCRE_UNGREEDY|PCRE_UTF8| \ |
PCRE_DOTALL|PCRE_DOLLAR_ENDONLY|PCRE_EXTRA|PCRE_UNGREEDY|PCRE_UTF8| \ |
| 508 |
PCRE_NO_AUTO_CAPTURE|PCRE_NO_UTF8_CHECK|PCRE_AUTO_CALLOUT|PCRE_FIRSTLINE| \ |
PCRE_NO_AUTO_CAPTURE|PCRE_NO_UTF8_CHECK|PCRE_AUTO_CALLOUT|PCRE_FIRSTLINE| \ |
| 509 |
PCRE_DUPNAMES|PCRE_NEWLINE_BITS) |
PCRE_DUPNAMES|PCRE_NEWLINE_BITS|PCRE_BSR_ANYCRLF|PCRE_BSR_UNICODE) |
| 510 |
|
|
| 511 |
#define PUBLIC_EXEC_OPTIONS \ |
#define PUBLIC_EXEC_OPTIONS \ |
| 512 |
(PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL|PCRE_NOTEMPTY|PCRE_NO_UTF8_CHECK| \ |
(PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL|PCRE_NOTEMPTY|PCRE_NO_UTF8_CHECK| \ |
| 513 |
PCRE_PARTIAL|PCRE_NEWLINE_BITS) |
PCRE_PARTIAL|PCRE_NEWLINE_BITS|PCRE_BSR_ANYCRLF|PCRE_BSR_UNICODE) |
| 514 |
|
|
| 515 |
#define PUBLIC_DFA_EXEC_OPTIONS \ |
#define PUBLIC_DFA_EXEC_OPTIONS \ |
| 516 |
(PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL|PCRE_NOTEMPTY|PCRE_NO_UTF8_CHECK| \ |
(PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL|PCRE_NOTEMPTY|PCRE_NO_UTF8_CHECK| \ |
| 517 |
PCRE_PARTIAL|PCRE_DFA_SHORTEST|PCRE_DFA_RESTART|PCRE_NEWLINE_BITS) |
PCRE_PARTIAL|PCRE_DFA_SHORTEST|PCRE_DFA_RESTART|PCRE_NEWLINE_BITS| \ |
| 518 |
|
PCRE_BSR_ANYCRLF|PCRE_BSR_UNICODE) |
| 519 |
|
|
| 520 |
#define PUBLIC_STUDY_OPTIONS 0 /* None defined */ |
#define PUBLIC_STUDY_OPTIONS 0 /* None defined */ |
| 521 |
|
|
| 871 |
ERR30, ERR31, ERR32, ERR33, ERR34, ERR35, ERR36, ERR37, ERR38, ERR39, |
ERR30, ERR31, ERR32, ERR33, ERR34, ERR35, ERR36, ERR37, ERR38, ERR39, |
| 872 |
ERR40, ERR41, ERR42, ERR43, ERR44, ERR45, ERR46, ERR47, ERR48, ERR49, |
ERR40, ERR41, ERR42, ERR43, ERR44, ERR45, ERR46, ERR47, ERR48, ERR49, |
| 873 |
ERR50, ERR51, ERR52, ERR53, ERR54, ERR55, ERR56, ERR57, ERR58, ERR59, |
ERR50, ERR51, ERR52, ERR53, ERR54, ERR55, ERR56, ERR57, ERR58, ERR59, |
| 874 |
ERR60 }; |
ERR60, ERR61, ERR62, ERR63 }; |
| 875 |
|
|
| 876 |
/* The real format of the start of the pcre block; the index of names and the |
/* The real format of the start of the pcre block; the index of names and the |
| 877 |
code vector run on as long as necessary after the end. We store an explicit |
code vector run on as long as necessary after the end. We store an explicit |
| 893 |
typedef struct real_pcre { |
typedef struct real_pcre { |
| 894 |
pcre_uint32 magic_number; |
pcre_uint32 magic_number; |
| 895 |
pcre_uint32 size; /* Total that was malloced */ |
pcre_uint32 size; /* Total that was malloced */ |
| 896 |
pcre_uint32 options; |
pcre_uint32 options; /* Public options */ |
| 897 |
pcre_uint32 dummy1; /* For future use, maybe */ |
pcre_uint16 flags; /* Private flags */ |
| 898 |
|
pcre_uint16 dummy1; /* For future use */ |
| 899 |
pcre_uint16 top_bracket; |
pcre_uint16 top_bracket; |
| 900 |
pcre_uint16 top_backref; |
pcre_uint16 top_backref; |
| 901 |
pcre_uint16 first_byte; |
pcre_uint16 first_byte; |
| 934 |
uschar *name_table; /* The name/number table */ |
uschar *name_table; /* The name/number table */ |
| 935 |
int names_found; /* Number of entries so far */ |
int names_found; /* Number of entries so far */ |
| 936 |
int name_entry_size; /* Size of each entry */ |
int name_entry_size; /* Size of each entry */ |
| 937 |
int bracount; /* Count of capturing parens */ |
int bracount; /* Count of capturing parens as we compile */ |
| 938 |
|
int final_bracount; /* Saved value after first pass */ |
| 939 |
int top_backref; /* Maximum back reference */ |
int top_backref; /* Maximum back reference */ |
| 940 |
unsigned int backref_map; /* Bitmap of low back refs */ |
unsigned int backref_map; /* Bitmap of low back refs */ |
| 941 |
int external_options; /* External (initial) options */ |
int external_options; /* External (initial) options */ |
| 942 |
|
int external_flags; /* External flag bits to be set */ |
| 943 |
int req_varyopt; /* "After variable item" flag for reqbyte */ |
int req_varyopt; /* "After variable item" flag for reqbyte */ |
|
BOOL nopartial; /* Set TRUE if partial won't work */ |
|
| 944 |
BOOL had_accept; /* (*ACCEPT) encountered */ |
BOOL had_accept; /* (*ACCEPT) encountered */ |
| 945 |
int nltype; /* Newline type */ |
int nltype; /* Newline type */ |
| 946 |
int nllen; /* Newline string length */ |
int nllen; /* Newline string length */ |
| 1000 |
BOOL notempty; /* Empty string match not wanted */ |
BOOL notempty; /* Empty string match not wanted */ |
| 1001 |
BOOL partial; /* PARTIAL flag */ |
BOOL partial; /* PARTIAL flag */ |
| 1002 |
BOOL hitend; /* Hit the end of the subject at some point */ |
BOOL hitend; /* Hit the end of the subject at some point */ |
| 1003 |
|
BOOL bsr_anycrlf; /* \R is just any CRLF, not full Unicode */ |
| 1004 |
const uschar *start_code; /* For use when recursing */ |
const uschar *start_code; /* For use when recursing */ |
| 1005 |
USPTR start_subject; /* Start of the subject string */ |
USPTR start_subject; /* Start of the subject string */ |
| 1006 |
USPTR end_subject; /* End of the subject string */ |
USPTR end_subject; /* End of the subject string */ |
| 1037 |
#define ctype_letter 0x02 |
#define ctype_letter 0x02 |
| 1038 |
#define ctype_digit 0x04 |
#define ctype_digit 0x04 |
| 1039 |
#define ctype_xdigit 0x08 |
#define ctype_xdigit 0x08 |
| 1040 |
#define ctype_word 0x10 /* alphameric or '_' */ |
#define ctype_word 0x10 /* alphanumeric or '_' */ |
| 1041 |
#define ctype_meta 0x80 /* regexp meta char or zero (end pattern) */ |
#define ctype_meta 0x80 /* regexp meta char or zero (end pattern) */ |
| 1042 |
|
|
| 1043 |
/* Offsets for the bitmap tables in pcre_cbits. Each table contains a set |
/* Offsets for the bitmap tables in pcre_cbits. Each table contains a set |
| 1065 |
#define tables_length (ctypes_offset + 256) |
#define tables_length (ctypes_offset + 256) |
| 1066 |
|
|
| 1067 |
/* Layout of the UCP type table that translates property names into types and |
/* Layout of the UCP type table that translates property names into types and |
| 1068 |
codes. */ |
codes. Each entry used to point directly to a name, but to reduce the number of |
| 1069 |
|
relocations in shared libraries, it now has an offset into a single string |
| 1070 |
|
instead. */ |
| 1071 |
|
|
| 1072 |
typedef struct { |
typedef struct { |
| 1073 |
const char *name; |
pcre_uint16 name_offset; |
| 1074 |
pcre_uint16 type; |
pcre_uint16 type; |
| 1075 |
pcre_uint16 value; |
pcre_uint16 value; |
| 1076 |
} ucp_type_table; |
} ucp_type_table; |
| 1088 |
|
|
| 1089 |
extern const int _pcre_utf8_table1_size; |
extern const int _pcre_utf8_table1_size; |
| 1090 |
|
|
| 1091 |
|
extern const char _pcre_utt_names[]; |
| 1092 |
extern const ucp_type_table _pcre_utt[]; |
extern const ucp_type_table _pcre_utt[]; |
| 1093 |
extern const int _pcre_utt_size; |
extern const int _pcre_utt_size; |
| 1094 |
|
|