pcre_internal.h File Reference

#include "pcre_config.h"
#include <ctype.h>
#include <limits.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pcre.h"

Include dependency graph for pcre_internal.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  real_pcre
struct  pcre_study_data
struct  compile_data
struct  branch_chain
struct  recursion_info
struct  match_data

Defines

#define PUT(a, n, d)
#define GET(a, n)   (((a)[n] << 8) | (a)[(n)+1])
#define MAX_PATTERN_SIZE   (1 << 16)
#define PUTINC(a, n, d)   PUT(a,n,d), a += LINK_SIZE
#define PUT2(a, n, d)
#define GET2(a, n)   (((a)[n] << 8) | (a)[(n)+1])
#define PUT2INC(a, n, d)   PUT2(a,n,d), a += 2
#define PCRE_DEFINITION
#define offsetof(p_type, field)   ((size_t)&(((p_type *)0)->field))
#define PCRE_IMS   (PCRE_CASELESS|PCRE_MULTILINE|PCRE_DOTALL)
#define PCRE_FIRSTSET   0x40000000
#define PCRE_REQCHSET   0x20000000
#define PCRE_STARTLINE   0x10000000
#define PCRE_ICHANGED   0x08000000
#define PCRE_STUDY_MAPPED   0x01
#define PUBLIC_OPTIONS
#define PUBLIC_EXEC_OPTIONS   (PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL|PCRE_NOTEMPTY)
#define PUBLIC_STUDY_OPTIONS   0
#define MAGIC_NUMBER   0x50435245UL
#define REQ_UNSET   (-2)
#define REQ_NONE   (-1)
#define REQ_CASELESS   0x0100
#define REQ_VARY   0x0200
#define FALSE   0
#define TRUE   1
#define ESC_e   27
#define ESC_f   '\f'
#define ESC_n   NEWLINE
#define ESC_r   '\r'
#define ESC_t   '\t'
#define XCL_NOT   0x01
#define XCL_MAP   0x02
#define XCL_END   0
#define XCL_SINGLE   1
#define XCL_RANGE   2
#define OP_NAME_LIST
#define OP_LENGTHS
#define EXTRACT_BASIC_MAX   150
#define CREF_RECURSE   0xffff
#define ERR1   "\\ at end of pattern"
#define ERR2   "\\c at end of pattern"
#define ERR3   "unrecognized character follows \\"
#define ERR4   "numbers out of order in {} quantifier"
#define ERR5   "number too big in {} quantifier"
#define ERR6   "missing terminating ] for character class"
#define ERR7   "invalid escape sequence in character class"
#define ERR8   "range out of order in character class"
#define ERR9   "nothing to repeat"
#define ERR10   "operand of unlimited repeat could match the empty string"
#define ERR11   "internal error: unexpected repeat"
#define ERR12   "unrecognized character after (?"
#define ERR13   "POSIX named classes are supported only within a class"
#define ERR14   "missing )"
#define ERR15   "reference to non-existent subpattern"
#define ERR16   "erroffset passed as NULL"
#define ERR17   "unknown option bit(s) set"
#define ERR18   "missing ) after comment"
#define ERR19   "parentheses nested too deeply"
#define ERR20   "regular expression too large"
#define ERR21   "failed to get memory"
#define ERR22   "unmatched parentheses"
#define ERR23   "internal error: code overflow"
#define ERR24   "unrecognized character after (?<"
#define ERR25   "lookbehind assertion is not fixed length"
#define ERR26   "malformed number after (?("
#define ERR27   "conditional group contains more than two branches"
#define ERR28   "assertion expected after (?("
#define ERR29   "(?R or (?digits must be followed by )"
#define ERR30   "unknown POSIX class name"
#define ERR31   "POSIX collating elements are not supported"
#define ERR32   "this version of PCRE is not compiled with PCRE_UTF8 support"
#define ERR33   "spare error"
#define ERR34   "character value in \\x{...} sequence is too large"
#define ERR35   "invalid condition (?(0)"
#define ERR36   "\\C not allowed in lookbehind assertion"
#define ERR37   "PCRE does not support \\L, \\l, \\N, \\P, \\p, \\U, \\u, or \\X"
#define ERR38   "number after (?C is > 255"
#define ERR39   "closing ) for (?C expected"
#define ERR40   "recursive call could loop indefinitely"
#define ERR41   "unrecognized character after (?P"
#define ERR42   "syntax error after (?P"
#define ERR43   "two named groups have the same name"
#define ctype_space   0x01
#define ctype_letter   0x02
#define ctype_digit   0x04
#define ctype_xdigit   0x08
#define ctype_word   0x10
#define ctype_meta   0x80
#define cbit_space   0
#define cbit_xdigit   32
#define cbit_digit   64
#define cbit_upper   96
#define cbit_lower   128
#define cbit_word   160
#define cbit_graph   192
#define cbit_print   224
#define cbit_punct   256
#define cbit_cntrl   288
#define cbit_length   320
#define lcc_offset   0
#define fcc_offset   256
#define cbits_offset   512
#define ctypes_offset   (cbits_offset + cbit_length)
#define tables_length   (ctypes_offset + 256)
#define POSIX_MALLOC_THRESHOLD   10

Typedefs

typedef int BOOL
typedef unsigned char uschar

Enumerations

enum  {
  ESC_A = 1, ESC_G, ESC_B, ESC_b,
  ESC_D, ESC_d, ESC_S, ESC_s,
  ESC_W, ESC_w, ESC_dum1, ESC_C,
  ESC_Z, ESC_z, ESC_E, ESC_Q,
  ESC_REF
}
enum  {
  OP_END, OP_SOD, OP_SOM, OP_NOT_WORD_BOUNDARY,
  OP_WORD_BOUNDARY, OP_NOT_DIGIT, OP_DIGIT, OP_NOT_WHITESPACE,
  OP_WHITESPACE, OP_NOT_WORDCHAR, OP_WORDCHAR, OP_ANY,
  OP_ANYBYTE, OP_EODN, OP_EOD, OP_OPT,
  OP_CIRC, OP_DOLL, OP_CHARS, OP_NOT,
  OP_STAR, OP_MINSTAR, OP_PLUS, OP_MINPLUS,
  OP_QUERY, OP_MINQUERY, OP_UPTO, OP_MINUPTO,
  OP_EXACT, OP_NOTSTAR, OP_NOTMINSTAR, OP_NOTPLUS,
  OP_NOTMINPLUS, OP_NOTQUERY, OP_NOTMINQUERY, OP_NOTUPTO,
  OP_NOTMINUPTO, OP_NOTEXACT, OP_TYPESTAR, OP_TYPEMINSTAR,
  OP_TYPEPLUS, OP_TYPEMINPLUS, OP_TYPEQUERY, OP_TYPEMINQUERY,
  OP_TYPEUPTO, OP_TYPEMINUPTO, OP_TYPEEXACT, OP_CRSTAR,
  OP_CRMINSTAR, OP_CRPLUS, OP_CRMINPLUS, OP_CRQUERY,
  OP_CRMINQUERY, OP_CRRANGE, OP_CRMINRANGE, OP_CLASS,
  OP_NCLASS, OP_XCLASS, OP_REF, OP_RECURSE,
  OP_CALLOUT, OP_ALT, OP_KET, OP_KETRMAX,
  OP_KETRMIN, OP_ASSERT, OP_ASSERT_NOT, OP_ASSERTBACK,
  OP_ASSERTBACK_NOT, OP_REVERSE, OP_ONCE, OP_COND,
  OP_CREF, OP_BRAZERO, OP_BRAMINZERO, OP_BRANUMBER,
  OP_BRA
}


Define Documentation

#define cbit_cntrl   288
 

Definition at line 657 of file pcre_internal.h.

#define cbit_digit   64
 

Definition at line 650 of file pcre_internal.h.

#define cbit_graph   192
 

Definition at line 654 of file pcre_internal.h.

#define cbit_length   320
 

Definition at line 658 of file pcre_internal.h.

#define cbit_lower   128
 

Definition at line 652 of file pcre_internal.h.

#define cbit_print   224
 

Definition at line 655 of file pcre_internal.h.

#define cbit_punct   256
 

Definition at line 656 of file pcre_internal.h.

#define cbit_space   0
 

Definition at line 648 of file pcre_internal.h.

#define cbit_upper   96
 

Definition at line 651 of file pcre_internal.h.

#define cbit_word   160
 

Definition at line 653 of file pcre_internal.h.

#define cbit_xdigit   32
 

Definition at line 649 of file pcre_internal.h.

#define cbits_offset   512
 

Definition at line 665 of file pcre_internal.h.

#define CREF_RECURSE   0xffff
 

Definition at line 486 of file pcre_internal.h.

#define ctype_digit   0x04
 

Definition at line 640 of file pcre_internal.h.

#define ctype_letter   0x02
 

Definition at line 639 of file pcre_internal.h.

#define ctype_meta   0x80
 

Definition at line 643 of file pcre_internal.h.

#define ctype_space   0x01
 

Definition at line 638 of file pcre_internal.h.

#define ctype_word   0x10
 

Definition at line 642 of file pcre_internal.h.

#define ctype_xdigit   0x08
 

Definition at line 641 of file pcre_internal.h.

#define ctypes_offset   (cbits_offset + cbit_length)
 

Definition at line 666 of file pcre_internal.h.

#define ERR1   "\\ at end of pattern"
 

Definition at line 493 of file pcre_internal.h.

#define ERR10   "operand of unlimited repeat could match the empty string"
 

Definition at line 502 of file pcre_internal.h.

#define ERR11   "internal error: unexpected repeat"
 

Definition at line 503 of file pcre_internal.h.

#define ERR12   "unrecognized character after (?"
 

Definition at line 504 of file pcre_internal.h.

#define ERR13   "POSIX named classes are supported only within a class"
 

Definition at line 505 of file pcre_internal.h.

#define ERR14   "missing )"
 

Definition at line 506 of file pcre_internal.h.

#define ERR15   "reference to non-existent subpattern"
 

Definition at line 507 of file pcre_internal.h.

#define ERR16   "erroffset passed as NULL"
 

Definition at line 508 of file pcre_internal.h.

#define ERR17   "unknown option bit(s) set"
 

Definition at line 509 of file pcre_internal.h.

#define ERR18   "missing ) after comment"
 

Definition at line 510 of file pcre_internal.h.

#define ERR19   "parentheses nested too deeply"
 

Definition at line 511 of file pcre_internal.h.

#define ERR2   "\\c at end of pattern"
 

Definition at line 494 of file pcre_internal.h.

#define ERR20   "regular expression too large"
 

Definition at line 512 of file pcre_internal.h.

#define ERR21   "failed to get memory"
 

Definition at line 513 of file pcre_internal.h.

#define ERR22   "unmatched parentheses"
 

Definition at line 514 of file pcre_internal.h.

#define ERR23   "internal error: code overflow"
 

Definition at line 515 of file pcre_internal.h.

#define ERR24   "unrecognized character after (?<"
 

Definition at line 516 of file pcre_internal.h.

#define ERR25   "lookbehind assertion is not fixed length"
 

Definition at line 517 of file pcre_internal.h.

#define ERR26   "malformed number after (?("
 

Definition at line 518 of file pcre_internal.h.

#define ERR27   "conditional group contains more than two branches"
 

Definition at line 519 of file pcre_internal.h.

#define ERR28   "assertion expected after (?("
 

Definition at line 520 of file pcre_internal.h.

#define ERR29   "(?R or (?digits must be followed by )"
 

Definition at line 521 of file pcre_internal.h.

#define ERR3   "unrecognized character follows \\"
 

Definition at line 495 of file pcre_internal.h.

#define ERR30   "unknown POSIX class name"
 

Definition at line 522 of file pcre_internal.h.

#define ERR31   "POSIX collating elements are not supported"
 

Definition at line 523 of file pcre_internal.h.

#define ERR32   "this version of PCRE is not compiled with PCRE_UTF8 support"
 

Definition at line 524 of file pcre_internal.h.

#define ERR33   "spare error"
 

Definition at line 525 of file pcre_internal.h.

#define ERR34   "character value in \\x{...} sequence is too large"
 

Definition at line 526 of file pcre_internal.h.

#define ERR35   "invalid condition (?(0)"
 

Definition at line 527 of file pcre_internal.h.

#define ERR36   "\\C not allowed in lookbehind assertion"
 

Definition at line 528 of file pcre_internal.h.

#define ERR37   "PCRE does not support \\L, \\l, \\N, \\P, \\p, \\U, \\u, or \\X"
 

Definition at line 529 of file pcre_internal.h.

#define ERR38   "number after (?C is > 255"
 

Definition at line 530 of file pcre_internal.h.

#define ERR39   "closing ) for (?C expected"
 

Definition at line 531 of file pcre_internal.h.

#define ERR4   "numbers out of order in {} quantifier"
 

Definition at line 496 of file pcre_internal.h.

#define ERR40   "recursive call could loop indefinitely"
 

Definition at line 532 of file pcre_internal.h.

#define ERR41   "unrecognized character after (?P"
 

Definition at line 533 of file pcre_internal.h.

#define ERR42   "syntax error after (?P"
 

Definition at line 534 of file pcre_internal.h.

#define ERR43   "two named groups have the same name"
 

Definition at line 535 of file pcre_internal.h.

#define ERR5   "number too big in {} quantifier"
 

Definition at line 497 of file pcre_internal.h.

#define ERR6   "missing terminating ] for character class"
 

Definition at line 498 of file pcre_internal.h.

#define ERR7   "invalid escape sequence in character class"
 

Definition at line 499 of file pcre_internal.h.

#define ERR8   "range out of order in character class"
 

Definition at line 500 of file pcre_internal.h.

#define ERR9   "nothing to repeat"
 

Definition at line 501 of file pcre_internal.h.

#define ESC_e   27
 

Definition at line 244 of file pcre_internal.h.

#define ESC_f   '\f'
 

Definition at line 248 of file pcre_internal.h.

#define ESC_n   NEWLINE
 

Definition at line 252 of file pcre_internal.h.

#define ESC_r   '\r'
 

Definition at line 256 of file pcre_internal.h.

#define ESC_t   '\t'
 

Definition at line 260 of file pcre_internal.h.

#define EXTRACT_BASIC_MAX   150
 

Definition at line 482 of file pcre_internal.h.

#define FALSE   0
 

Definition at line 236 of file pcre_internal.h.

#define fcc_offset   256
 

Definition at line 664 of file pcre_internal.h.

#define GET a,
 )     (((a)[n] << 8) | (a)[(n)+1])
 

Definition at line 100 of file pcre_internal.h.

Referenced by could_be_empty_branch(), find_firstassertedchar(), find_fixedlength(), first_significant_code(), is_anchored(), is_startline(), match(), and set_start_bits().

#define GET2 a,
 )     (((a)[n] << 8) | (a)[(n)+1])
 

Definition at line 151 of file pcre_internal.h.

#define lcc_offset   0
 

Definition at line 663 of file pcre_internal.h.

#define MAGIC_NUMBER   0x50435245UL
 

Definition at line 213 of file pcre_internal.h.

#define MAX_PATTERN_SIZE   (1 << 16)
 

Definition at line 103 of file pcre_internal.h.

#define offsetof p_type,
field   )     ((size_t)&(((p_type *)0)->field))
 

Definition at line 176 of file pcre_internal.h.

#define OP_LENGTHS
 

Definition at line 434 of file pcre_internal.h.

#define OP_NAME_LIST
 

Value:

"End", "\\A", "\\G", "\\B", "\\b", "\\D", "\\d",                \
  "\\S", "\\s", "\\W", "\\w", "Any", "Anybyte", "\\Z", "\\z",     \
  "Opt", "^", "$", "chars", "not",                                \
  "*", "*?", "+", "+?", "?", "??", "{", "{", "{",                 \
  "*", "*?", "+", "+?", "?", "??", "{", "{", "{",                 \
  "*", "*?", "+", "+?", "?", "??", "{", "{", "{",                 \
  "*", "*?", "+", "+?", "?", "??", "{", "{",                      \
  "class", "nclass", "xclass", "Ref", "Recurse", "Callout",       \
  "Alt", "Ket", "KetRmax", "KetRmin", "Assert", "Assert not",     \
  "AssertB", "AssertB not", "Reverse", "Once", "Cond", "Cond ref",\
  "Brazero", "Braminzero", "Branumber", "Bra"

Definition at line 411 of file pcre_internal.h.

#define PCRE_DEFINITION
 

Definition at line 167 of file pcre_internal.h.

#define PCRE_FIRSTSET   0x40000000
 

Definition at line 189 of file pcre_internal.h.

#define PCRE_ICHANGED   0x08000000
 

Definition at line 192 of file pcre_internal.h.

#define PCRE_IMS   (PCRE_CASELESS|PCRE_MULTILINE|PCRE_DOTALL)
 

Definition at line 181 of file pcre_internal.h.

#define PCRE_REQCHSET   0x20000000
 

Definition at line 190 of file pcre_internal.h.

#define PCRE_STARTLINE   0x10000000
 

Definition at line 191 of file pcre_internal.h.

#define PCRE_STUDY_MAPPED   0x01
 

Definition at line 196 of file pcre_internal.h.

#define POSIX_MALLOC_THRESHOLD   10
 

Definition at line 671 of file pcre_internal.h.

#define PUBLIC_EXEC_OPTIONS   (PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL|PCRE_NOTEMPTY)
 

Definition at line 206 of file pcre_internal.h.

#define PUBLIC_OPTIONS
 

Value:

Definition at line 201 of file pcre_internal.h.

#define PUBLIC_STUDY_OPTIONS   0
 

Definition at line 209 of file pcre_internal.h.

#define PUT a,
n,
 ) 
 

Value:

(a[n] = (d) >> 8), \
  (a[(n)+1] = (d) & 255)

Definition at line 96 of file pcre_internal.h.

Referenced by compile_regex().

#define PUT2 a,
n,
 ) 
 

Value:

a[n] = (d) >> 8; \
  a[(n)+1] = (d) & 255

Definition at line 147 of file pcre_internal.h.

#define PUT2INC a,
n,
 )     PUT2(a,n,d), a += 2
 

Definition at line 154 of file pcre_internal.h.

#define PUTINC a,
n,
 )     PUT(a,n,d), a += LINK_SIZE
 

Definition at line 140 of file pcre_internal.h.

#define REQ_CASELESS   0x0100
 

Definition at line 223 of file pcre_internal.h.

#define REQ_NONE   (-1)
 

Definition at line 218 of file pcre_internal.h.

#define REQ_UNSET   (-2)
 

Definition at line 217 of file pcre_internal.h.

#define REQ_VARY   0x0200
 

Definition at line 224 of file pcre_internal.h.

#define tables_length   (ctypes_offset + 256)
 

Definition at line 667 of file pcre_internal.h.

#define TRUE   1
 

Definition at line 237 of file pcre_internal.h.

#define XCL_END   0
 

Definition at line 283 of file pcre_internal.h.

#define XCL_MAP   0x02
 

Definition at line 281 of file pcre_internal.h.

#define XCL_NOT   0x01
 

Definition at line 280 of file pcre_internal.h.

#define XCL_RANGE   2
 

Definition at line 285 of file pcre_internal.h.

#define XCL_SINGLE   1
 

Definition at line 284 of file pcre_internal.h.


Typedef Documentation

typedef int BOOL
 

Definition at line 230 of file pcre_internal.h.

typedef unsigned char uschar
 

Definition at line 544 of file pcre_internal.h.


Enumeration Type Documentation

anonymous enum
 

Enumerator:
ESC_A 
ESC_G 
ESC_B 
ESC_b 
ESC_D 
ESC_d 
ESC_S 
ESC_s 
ESC_W 
ESC_w 
ESC_dum1 
ESC_C 
ESC_Z 
ESC_z 
ESC_E 
ESC_Q 
ESC_REF 

Definition at line 274 of file pcre_internal.h.

anonymous enum
 

Enumerator:
OP_END 
OP_SOD 
OP_SOM 
OP_NOT_WORD_BOUNDARY 
OP_WORD_BOUNDARY 
OP_NOT_DIGIT 
OP_DIGIT 
OP_NOT_WHITESPACE 
OP_WHITESPACE 
OP_NOT_WORDCHAR 
OP_WORDCHAR 
OP_ANY 
OP_ANYBYTE 
OP_EODN 
OP_EOD 
OP_OPT 
OP_CIRC 
OP_DOLL 
OP_CHARS 
OP_NOT 
OP_STAR 
OP_MINSTAR 
OP_PLUS 
OP_MINPLUS 
OP_QUERY 
OP_MINQUERY 
OP_UPTO 
OP_MINUPTO 
OP_EXACT 
OP_NOTSTAR 
OP_NOTMINSTAR 
OP_NOTPLUS 
OP_NOTMINPLUS 
OP_NOTQUERY 
OP_NOTMINQUERY 
OP_NOTUPTO 
OP_NOTMINUPTO 
OP_NOTEXACT 
OP_TYPESTAR 
OP_TYPEMINSTAR 
OP_TYPEPLUS 
OP_TYPEMINPLUS 
OP_TYPEQUERY 
OP_TYPEMINQUERY 
OP_TYPEUPTO 
OP_TYPEMINUPTO 
OP_TYPEEXACT 
OP_CRSTAR 
OP_CRMINSTAR 
OP_CRPLUS 
OP_CRMINPLUS 
OP_CRQUERY 
OP_CRMINQUERY 
OP_CRRANGE 
OP_CRMINRANGE 
OP_CLASS 
OP_NCLASS 
OP_XCLASS 
OP_REF 
OP_RECURSE 
OP_CALLOUT 
OP_ALT 
OP_KET 
OP_KETRMAX 
OP_KETRMIN 
OP_ASSERT 
OP_ASSERT_NOT 
OP_ASSERTBACK 
OP_ASSERTBACK_NOT 
OP_REVERSE 
OP_ONCE 
OP_COND 
OP_CREF 
OP_BRAZERO 
OP_BRAMINZERO 
OP_BRANUMBER 
OP_BRA 

Definition at line 294 of file pcre_internal.h.


Generated on Fri Jun 9 22:24:26 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6