Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

internal.h File Reference

#include "pcreconfig.h"
#include <ctype.h>
#include <limits.h>
#include <setjmp.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pcre.h"

Include dependency graph for internal.h:

Go to the source code of this file.

Classes

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

Defines

#define PCRE_DEFINITION
#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 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_NOPARTIAL   0x04000000
#define PCRE_STUDY_MAPPED   0x01
#define PUBLIC_OPTIONS
#define PUBLIC_EXEC_OPTIONS
#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_tee   '\t'
#define XCL_NOT   0x01
#define XCL_MAP   0x02
#define XCL_END   0
#define XCL_SINGLE   1
#define XCL_RANGE   2
#define XCL_PROP   3
#define XCL_NOTPROP   4
#define EXTRACT_BASIC_MAX   100
#define OP_NAME_LIST
#define OP_LENGTHS
#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, \\U, or \\u"
#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 ERR44   "invalid UTF-8 string"
#define ERR45   "support for \\P, \\p, and \\X has not been compiled"
#define ERR46   "malformed \\P or \\p sequence"
#define ERR47   "unknown property name after \\P or \\p"
#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)

Typedefs

typedef unsigned char uschar
typedef int BOOL
typedef real_pcre real_pcre
typedef pcre_study_data pcre_study_data
typedef compile_data compile_data
typedef branch_chain branch_chain
typedef recursion_info recursion_info
typedef match_data match_data

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_P, ESC_p, ESC_X, 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_NOTPROP, OP_PROP, OP_EXTUNI,
  OP_EODN, OP_EOD, OP_OPT, OP_CIRC,
  OP_DOLL, OP_CHAR, OP_CHARNC, 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 742 of file internal.h.

#define cbit_digit   64
 

Definition at line 735 of file internal.h.

#define cbit_graph   192
 

Definition at line 739 of file internal.h.

#define cbit_length   320
 

Definition at line 743 of file internal.h.

#define cbit_lower   128
 

Definition at line 737 of file internal.h.

#define cbit_print   224
 

Definition at line 740 of file internal.h.

#define cbit_punct   256
 

Definition at line 741 of file internal.h.

#define cbit_space   0
 

Definition at line 733 of file internal.h.

#define cbit_upper   96
 

Definition at line 736 of file internal.h.

#define cbit_word   160
 

Definition at line 738 of file internal.h.

#define cbit_xdigit   32
 

Definition at line 734 of file internal.h.

#define cbits_offset   512
 

Definition at line 750 of file internal.h.

#define CREF_RECURSE   0xffff
 

Definition at line 541 of file internal.h.

#define ctype_digit   0x04
 

Definition at line 725 of file internal.h.

#define ctype_letter   0x02
 

Definition at line 724 of file internal.h.

#define ctype_meta   0x80
 

Definition at line 728 of file internal.h.

#define ctype_space   0x01
 

Definition at line 723 of file internal.h.

#define ctype_word   0x10
 

Definition at line 727 of file internal.h.

#define ctype_xdigit   0x08
 

Definition at line 726 of file internal.h.

#define ctypes_offset   (cbits_offset + cbit_length)
 

Definition at line 751 of file internal.h.

#define ERR1   "\\ at end of pattern"
 

Definition at line 548 of file internal.h.

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

Definition at line 557 of file internal.h.

#define ERR11   "internal error: unexpected repeat"
 

Definition at line 558 of file internal.h.

#define ERR12   "unrecognized character after (?"
 

Definition at line 559 of file internal.h.

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

Definition at line 560 of file internal.h.

#define ERR14   "missing )"
 

Definition at line 561 of file internal.h.

#define ERR15   "reference to non-existent subpattern"
 

Definition at line 562 of file internal.h.

#define ERR16   "erroffset passed as NULL"
 

Definition at line 563 of file internal.h.

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

Definition at line 564 of file internal.h.

#define ERR18   "missing ) after comment"
 

Definition at line 565 of file internal.h.

#define ERR19   "parentheses nested too deeply"
 

Definition at line 566 of file internal.h.

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

Definition at line 549 of file internal.h.

#define ERR20   "regular expression too large"
 

Definition at line 567 of file internal.h.

#define ERR21   "failed to get memory"
 

Definition at line 568 of file internal.h.

#define ERR22   "unmatched parentheses"
 

Definition at line 569 of file internal.h.

#define ERR23   "internal error: code overflow"
 

Definition at line 570 of file internal.h.

#define ERR24   "unrecognized character after (?<"
 

Definition at line 571 of file internal.h.

#define ERR25   "lookbehind assertion is not fixed length"
 

Definition at line 572 of file internal.h.

#define ERR26   "malformed number after (?("
 

Definition at line 573 of file internal.h.

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

Definition at line 574 of file internal.h.

#define ERR28   "assertion expected after (?("
 

Definition at line 575 of file internal.h.

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

Definition at line 576 of file internal.h.

#define ERR3   "unrecognized character follows \\"
 

Definition at line 550 of file internal.h.

#define ERR30   "unknown POSIX class name"
 

Definition at line 577 of file internal.h.

#define ERR31   "POSIX collating elements are not supported"
 

Definition at line 578 of file internal.h.

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

Definition at line 579 of file internal.h.

#define ERR33   "spare error"
 

Definition at line 580 of file internal.h.

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

Definition at line 581 of file internal.h.

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

Definition at line 582 of file internal.h.

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

Definition at line 583 of file internal.h.

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

Definition at line 584 of file internal.h.

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

Definition at line 585 of file internal.h.

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

Definition at line 586 of file internal.h.

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

Definition at line 551 of file internal.h.

#define ERR40   "recursive call could loop indefinitely"
 

Definition at line 587 of file internal.h.

#define ERR41   "unrecognized character after (?P"
 

Definition at line 588 of file internal.h.

#define ERR42   "syntax error after (?P"
 

Definition at line 589 of file internal.h.

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

Definition at line 590 of file internal.h.

#define ERR44   "invalid UTF-8 string"
 

Definition at line 591 of file internal.h.

#define ERR45   "support for \\P, \\p, and \\X has not been compiled"
 

Definition at line 592 of file internal.h.

#define ERR46   "malformed \\P or \\p sequence"
 

Definition at line 593 of file internal.h.

#define ERR47   "unknown property name after \\P or \\p"
 

Definition at line 594 of file internal.h.

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

Definition at line 552 of file internal.h.

#define ERR6   "missing terminating ] for character class"
 

Definition at line 553 of file internal.h.

#define ERR7   "invalid escape sequence in character class"
 

Definition at line 554 of file internal.h.

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

Definition at line 555 of file internal.h.

#define ERR9   "nothing to repeat"
 

Definition at line 556 of file internal.h.

#define ESC_e   27
 

Definition at line 284 of file internal.h.

#define ESC_f   '\f'
 

Definition at line 288 of file internal.h.

#define ESC_n   NEWLINE
 

Definition at line 292 of file internal.h.

#define ESC_r   '\r'
 

Definition at line 296 of file internal.h.

#define ESC_tee   '\t'
 

Definition at line 303 of file internal.h.

#define EXTRACT_BASIC_MAX   100
 

Definition at line 462 of file internal.h.

#define FALSE   0
 

Definition at line 276 of file internal.h.

#define fcc_offset   256
 

Definition at line 749 of file internal.h.

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

Definition at line 158 of file internal.h.

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

Definition at line 209 of file internal.h.

#define lcc_offset   0
 

Definition at line 748 of file internal.h.

#define MAGIC_NUMBER   0x50435245UL
 

Definition at line 259 of file internal.h.

#define MAX_PATTERN_SIZE   (1 << 16)
 

Definition at line 161 of file internal.h.

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

Definition at line 219 of file internal.h.

#define OP_LENGTHS
 

Definition at line 494 of file internal.h.

#define OP_NAME_LIST
 

Value:

"End", "\\A", "\\G", "\\B", "\\b", "\\D", "\\d",                \
  "\\S", "\\s", "\\W", "\\w", "Any", "Anybyte",                   \
  "notprop", "prop", "extuni",                                    \
  "\\Z", "\\z",                                                   \
  "Opt", "^", "$", "char", "charnc", "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 469 of file internal.h.

#define PCRE_DEFINITION
 

Definition at line 63 of file internal.h.

#define PCRE_FIRSTSET   0x40000000
 

Definition at line 233 of file internal.h.

#define PCRE_ICHANGED   0x08000000
 

Definition at line 236 of file internal.h.

#define PCRE_IMS   (PCRE_CASELESS|PCRE_MULTILINE|PCRE_DOTALL)
 

Definition at line 225 of file internal.h.

#define PCRE_NOPARTIAL   0x04000000
 

Definition at line 237 of file internal.h.

#define PCRE_REQCHSET   0x20000000
 

Definition at line 234 of file internal.h.

#define PCRE_STARTLINE   0x10000000
 

Definition at line 235 of file internal.h.

#define PCRE_STUDY_MAPPED   0x01
 

Definition at line 241 of file internal.h.

#define PUBLIC_EXEC_OPTIONS
 

Value:

Definition at line 251 of file internal.h.

#define PUBLIC_OPTIONS
 

Value:

Definition at line 246 of file internal.h.

#define PUBLIC_STUDY_OPTIONS   0
 

Definition at line 255 of file internal.h.

#define PUT a,
n,
 ) 
 

Value:

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

Definition at line 154 of file internal.h.

#define PUT2 a,
n,
 ) 
 

Value:

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

Definition at line 205 of file internal.h.

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

Definition at line 212 of file internal.h.

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

Definition at line 198 of file internal.h.

#define REQ_CASELESS   0x0100
 

Definition at line 269 of file internal.h.

#define REQ_NONE   (-1)
 

Definition at line 264 of file internal.h.

#define REQ_UNSET   (-2)
 

Definition at line 263 of file internal.h.

#define REQ_VARY   0x0200
 

Definition at line 270 of file internal.h.

#define tables_length   (ctypes_offset + 256)
 

Definition at line 752 of file internal.h.

#define TRUE   1
 

Definition at line 277 of file internal.h.

#define XCL_END   0
 

Definition at line 327 of file internal.h.

#define XCL_MAP   0x02
 

Definition at line 325 of file internal.h.

#define XCL_NOT   0x01
 

Definition at line 324 of file internal.h.

#define XCL_NOTPROP   4
 

Definition at line 331 of file internal.h.

#define XCL_PROP   3
 

Definition at line 330 of file internal.h.

#define XCL_RANGE   2
 

Definition at line 329 of file internal.h.

#define XCL_SINGLE   1
 

Definition at line 328 of file internal.h.


Typedef Documentation

typedef int BOOL
 

Definition at line 274 of file internal.h.

typedef struct branch_chain branch_chain
 

typedef struct compile_data compile_data
 

typedef struct match_data match_data
 

typedef struct pcre_study_data pcre_study_data
 

typedef struct real_pcre real_pcre
 

typedef struct recursion_info recursion_info
 

typedef unsigned char uschar
 

Definition at line 95 of file 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_P 
ESC_p 
ESC_X 
ESC_Z 
ESC_z 
ESC_E 
ESC_Q 
ESC_REF 

Definition at line 317 of file 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_NOTPROP 
OP_PROP 
OP_EXTUNI 
OP_EODN 
OP_EOD 
OP_OPT 
OP_CIRC 
OP_DOLL 
OP_CHAR 
OP_CHARNC 
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 340 of file internal.h.


Generated on Wed Sep 7 10:03:47 2005 for Crazy Eddies GUI System by  doxygen 1.4.3