Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

pcreinternal.h File Reference

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

Go to the source code of this file.

Compounds

struct  compile_data
struct  match_data
struct  real_pcre
struct  real_pcre_extra

Defines

#define PCRE_VERSION   "2.06 21-Jun-1999"
#define offsetof(p_type, field)   ((size_t)&(((p_type *)0)->field))
#define PCRE_IMS   (PCRE_CASELESS|PCRE_MULTILINE|PCRE_DOTALL)
#define PCRE_FIRSTSET   0x8000
#define PCRE_STARTLINE   0x4000
#define PCRE_INGROUP   0x2000
#define PCRE_STUDY_MAPPED   0x01
#define PUBLIC_OPTIONS
#define PUBLIC_EXEC_OPTIONS   (PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL)
#define PUBLIC_STUDY_OPTIONS   0
#define MAGIC_NUMBER   0x50435245UL
#define FALSE   0
#define TRUE   1
#define EXTRACT_MAX   99
#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   "too many capturing parenthesized sub-patterns"
#define ERR14   "missing )"
#define ERR15   "back 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   "too many sets of parentheses"
#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 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_digit   0
#define cbit_word   32
#define cbit_space   64
#define cbit_length   96
#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 int BOOL
typedef unsigned char uschar
typedef real_pcre real_pcre
typedef real_pcre_extra real_pcre_extra
typedef compile_data compile_data
typedef match_data match_data

Enumerations

enum  {
  ESC_A = 1, ESC_B, ESC_b, ESC_D,
  ESC_d, ESC_S, ESC_s, ESC_W,
  ESC_w, ESC_Z, ESC_z, ESC_REF
}
enum  {
  OP_END, OP_SOD, OP_NOT_WORD_BOUNDARY, OP_WORD_BOUNDARY,
  OP_NOT_DIGIT, OP_DIGIT, OP_NOT_WHITESPACE, OP_WHITESPACE,
  OP_NOT_WORDCHAR, OP_WORDCHAR, OP_EODN, OP_EOD,
  OP_OPT, OP_CIRC, OP_DOLL, OP_ANY,
  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_REF, 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_BRA
}


Define Documentation

#define cbit_digit   0
 

Definition at line 324 of file pcreinternal.h.

Referenced by compile_branch.

#define cbit_length   96
 

Definition at line 327 of file pcreinternal.h.

#define cbit_space   64
 

Definition at line 326 of file pcreinternal.h.

Referenced by compile_branch.

#define cbit_word   32
 

Definition at line 325 of file pcreinternal.h.

Referenced by compile_branch.

#define cbits_offset   512
 

Definition at line 334 of file pcreinternal.h.

Referenced by vmdpcre_compile.

#define ctype_digit   0x04
 

Definition at line 316 of file pcreinternal.h.

Referenced by check_escape, compile_branch, is_counted_repeat, match, read_repeat_counts, and vmdpcre_compile.

#define ctype_letter   0x02
 

Definition at line 315 of file pcreinternal.h.

#define ctype_meta   0x80
 

Definition at line 319 of file pcreinternal.h.

Referenced by compile_branch, and vmdpcre_compile.

#define ctype_space   0x01
 

Definition at line 314 of file pcreinternal.h.

Referenced by compile_branch, match, and vmdpcre_compile.

#define ctype_word   0x10
 

Definition at line 318 of file pcreinternal.h.

Referenced by match.

#define ctype_xdigit   0x08
 

Definition at line 317 of file pcreinternal.h.

Referenced by check_escape.

#define ctypes_offset   (cbits_offset + cbit_length)
 

Definition at line 335 of file pcreinternal.h.

Referenced by vmdpcre_compile, and vmdpcre_exec.

#define ERR1   "\\ at end of pattern"
 

Definition at line 223 of file pcreinternal.h.

Referenced by check_escape.

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

Definition at line 232 of file pcreinternal.h.

#define ERR11   "internal error: unexpected repeat"
 

Definition at line 233 of file pcreinternal.h.

Referenced by compile_branch.

#define ERR12   "unrecognized character after (?"
 

Definition at line 234 of file pcreinternal.h.

Referenced by compile_branch, and vmdpcre_compile.

#define ERR13   "too many capturing parenthesized sub-patterns"
 

Definition at line 235 of file pcreinternal.h.

Referenced by compile_branch.

#define ERR14   "missing )"
 

Definition at line 236 of file pcreinternal.h.

Referenced by compile_branch.

#define ERR15   "back reference to non-existent subpattern"
 

Definition at line 237 of file pcreinternal.h.

Referenced by vmdpcre_compile.

#define ERR16   "erroffset passed as NULL"
 

Definition at line 238 of file pcreinternal.h.

Referenced by vmdpcre_compile.

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

Definition at line 239 of file pcreinternal.h.

Referenced by vmdpcre_compile.

#define ERR18   "missing ) after comment"
 

Definition at line 240 of file pcreinternal.h.

Referenced by vmdpcre_compile.

#define ERR19   "too many sets of parentheses"
 

Definition at line 241 of file pcreinternal.h.

Referenced by vmdpcre_compile.

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

Definition at line 224 of file pcreinternal.h.

Referenced by check_escape.

#define ERR20   "regular expression too large"
 

Definition at line 242 of file pcreinternal.h.

Referenced by vmdpcre_compile.

#define ERR21   "failed to get memory"
 

Definition at line 243 of file pcreinternal.h.

Referenced by vmdpcre_compile.

#define ERR22   "unmatched parentheses"
 

Definition at line 244 of file pcreinternal.h.

Referenced by vmdpcre_compile.

#define ERR23   "internal error: code overflow"
 

Definition at line 245 of file pcreinternal.h.

Referenced by vmdpcre_compile.

#define ERR24   "unrecognized character after (?<"
 

Definition at line 246 of file pcreinternal.h.

Referenced by compile_branch, and vmdpcre_compile.

#define ERR25   "lookbehind assertion is not fixed length"
 

Definition at line 247 of file pcreinternal.h.

Referenced by compile_regex.

#define ERR26   "malformed number after (?("
 

Definition at line 248 of file pcreinternal.h.

Referenced by vmdpcre_compile.

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

Definition at line 249 of file pcreinternal.h.

Referenced by compile_branch.

#define ERR28   "assertion expected after (?("
 

Definition at line 250 of file pcreinternal.h.

Referenced by vmdpcre_compile.

#define ERR3   "unrecognized character follows \\"
 

Definition at line 225 of file pcreinternal.h.

Referenced by check_escape.

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

Definition at line 226 of file pcreinternal.h.

Referenced by read_repeat_counts.

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

Definition at line 227 of file pcreinternal.h.

Referenced by read_repeat_counts.

#define ERR6   "missing terminating ] for character class"
 

Definition at line 228 of file pcreinternal.h.

Referenced by compile_branch.

#define ERR7   "invalid escape sequence in character class"
 

Definition at line 229 of file pcreinternal.h.

Referenced by compile_branch.

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

Definition at line 230 of file pcreinternal.h.

Referenced by compile_branch.

#define ERR9   "nothing to repeat"
 

Definition at line 231 of file pcreinternal.h.

Referenced by compile_branch.

#define EXTRACT_MAX   99
 

Definition at line 216 of file pcreinternal.h.

Referenced by compile_branch.

#define FALSE   0
 

Definition at line 101 of file pcreinternal.h.

#define fcc_offset   256
 

Definition at line 333 of file pcreinternal.h.

Referenced by vmdpcre_compile.

#define lcc_offset   0
 

Definition at line 332 of file pcreinternal.h.

Referenced by vmdpcre_compile, and vmdpcre_exec.

#define MAGIC_NUMBER   0x50435245UL
 

Definition at line 95 of file pcreinternal.h.

Referenced by vmdpcre_compile, vmdpcre_exec, and vmdpcre_info.

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

Definition at line 63 of file pcreinternal.h.

Referenced by vmdpcre_compile.

#define PCRE_FIRSTSET   0x8000
 

Definition at line 74 of file pcreinternal.h.

Referenced by vmdpcre_compile, vmdpcre_exec, and vmdpcre_info.

#define PCRE_IMS   (PCRE_CASELESS|PCRE_MULTILINE|PCRE_DOTALL)
 

Definition at line 68 of file pcreinternal.h.

Referenced by compile_branch, compile_regex, match, and vmdpcre_compile.

#define PCRE_INGROUP   0x2000
 

Definition at line 76 of file pcreinternal.h.

Referenced by compile_branch.

#define PCRE_STARTLINE   0x4000
 

Definition at line 75 of file pcreinternal.h.

Referenced by vmdpcre_compile, vmdpcre_exec, and vmdpcre_info.

#define PCRE_STUDY_MAPPED   0x01
 

Definition at line 80 of file pcreinternal.h.

Referenced by vmdpcre_exec.

#define PCRE_VERSION   "2.06 21-Jun-1999"
 

Definition at line 6 of file pcreinternal.h.

Referenced by vmdpcre_version.

#define PUBLIC_EXEC_OPTIONS   (PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL)
 

Definition at line 89 of file pcreinternal.h.

Referenced by vmdpcre_exec.

#define PUBLIC_OPTIONS
 

Value:

Definition at line 85 of file pcreinternal.h.

Referenced by vmdpcre_compile, and vmdpcre_info.

#define PUBLIC_STUDY_OPTIONS   0
 

Definition at line 91 of file pcreinternal.h.

#define tables_length   (ctypes_offset + 256)
 

Definition at line 336 of file pcreinternal.h.

#define TRUE   1
 

Definition at line 102 of file pcreinternal.h.


Typedef Documentation

typedef int BOOL
 

Definition at line 99 of file pcreinternal.h.

Referenced by check_escape, compile_branch, compile_regex, first_significant_code, match, and vmdpcre_exec.

typedef struct compile_data compile_data
 

typedef struct match_data match_data
 

typedef struct real_pcre real_pcre
 

typedef struct real_pcre_extra real_pcre_extra
 

typedef unsigned char uschar
 

Definition at line 259 of file pcreinternal.h.

Referenced by check_escape, compile_branch, compile_regex, find_firstchar, find_fixedlength, first_significant_code, is_anchored, is_counted_repeat, is_startline, match, match_ref, read_repeat_counts, vmdpcre_compile, and vmdpcre_exec.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
ESC_A 
ESC_B 
ESC_b 
ESC_D 
ESC_d 
ESC_S 
ESC_s 
ESC_W 
ESC_w 
ESC_Z 
ESC_z 
ESC_REF 

Definition at line 113 of file pcreinternal.h.

anonymous enum
 

Enumeration values:
OP_END 
OP_SOD 
OP_NOT_WORD_BOUNDARY 
OP_WORD_BOUNDARY 
OP_NOT_DIGIT 
OP_DIGIT 
OP_NOT_WHITESPACE 
OP_WHITESPACE 
OP_NOT_WORDCHAR 
OP_WORDCHAR 
OP_EODN 
OP_EOD 
OP_OPT 
OP_CIRC 
OP_DOLL 
OP_ANY 
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_REF 
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_BRA 

Definition at line 120 of file pcreinternal.h.


Generated on Tue Apr 23 04:24:39 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002