⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 internal.h

📁 Apache HTTP Server 是一个功能强大的灵活的与HTTP/1.1相兼容的web服务器.这里给出的是Apache HTTP服务器的源码。
💻 H
📖 第 1 页 / 共 2 页
字号:
  OP_NOTEXACT,       /* Exactly n matches */  OP_TYPESTAR,       /* The maximizing and minimizing versions of */  OP_TYPEMINSTAR,    /* all these opcodes must come in pairs, with */  OP_TYPEPLUS,       /* the minimizing one second. These codes must */  OP_TYPEMINPLUS,    /* be in exactly the same order as those above. */  OP_TYPEQUERY,      /* This set applies to character types such as \d */  OP_TYPEMINQUERY,  OP_TYPEUPTO,       /* From 0 to n matches */  OP_TYPEMINUPTO,  OP_TYPEEXACT,      /* Exactly n matches */  OP_CRSTAR,         /* The maximizing and minimizing versions of */  OP_CRMINSTAR,      /* all these opcodes must come in pairs, with */  OP_CRPLUS,         /* the minimizing one second. These codes must */  OP_CRMINPLUS,      /* be in exactly the same order as those above. */  OP_CRQUERY,        /* These are for character classes and back refs */  OP_CRMINQUERY,  OP_CRRANGE,        /* These are different to the three seta above. */  OP_CRMINRANGE,  OP_CLASS,          /* Match a character class */  OP_REF,            /* Match a back reference */  OP_RECURSE,        /* Match this pattern recursively */  OP_ALT,            /* Start of alternation */  OP_KET,            /* End of group that doesn't have an unbounded repeat */  OP_KETRMAX,        /* These two must remain together and in this */  OP_KETRMIN,        /* order. They are for groups the repeat for ever. */  /* The assertions must come before ONCE and COND */  OP_ASSERT,         /* Positive lookahead */  OP_ASSERT_NOT,     /* Negative lookahead */  OP_ASSERTBACK,     /* Positive lookbehind */  OP_ASSERTBACK_NOT, /* Negative lookbehind */  OP_REVERSE,        /* Move pointer back - used in lookbehind assertions */  /* ONCE and COND must come after the assertions, with ONCE first, as there's  a test for >= ONCE for a subpattern that isn't an assertion. */  OP_ONCE,           /* Once matched, don't back up into the subpattern */  OP_COND,           /* Conditional group */  OP_CREF,           /* Used to hold an extraction string number (cond ref) */  OP_BRAZERO,        /* These two must remain together and in this */  OP_BRAMINZERO,     /* order. */  OP_BRANUMBER,      /* Used for extracting brackets whose number is greater                        than can fit into an opcode. */  OP_BRA             /* This and greater values are used for brackets that                        extract substrings up to a basic limit. After that,                        use is made of OP_BRANUMBER. */};/* The highest extraction number before we have to start using additionalbytes. (Originally PCRE didn't have support for extraction counts highter thanthis number.) The value is limited by the number of opcodes left after OP_BRA,i.e. 255 - OP_BRA. We actually set it a bit lower to leave room for additionalopcodes. */#define EXTRACT_BASIC_MAX  150/* The texts of compile-time error messages are defined as macros here so thatthey can be accessed by the POSIX wrapper and converted into error codes.  Yes,I could have used error codes in the first place, but didn't feel like changingjust to accommodate the POSIX wrapper. */#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 "unused error"#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 "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 "(?p 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 "characters with values > 255 are not yet supported in classes"#define ERR34 "character value in \\x{...} sequence is too large"#define ERR35 "invalid condition (?(0)"/* All character handling must be done as unsigned characters. Otherwise thereare problems with top-bit-set characters and functions such as isspace().However, we leave the interface to the outside world as char *, because thatshould make things easier for callers. We define a short type for unsigned charto save lots of typing. I tried "uchar", but it causes problems on DigitalUnix, where it is defined in sys/types, so use "uschar" instead. */typedef unsigned char uschar;/* The real format of the start of the pcre block; the actual code vectorruns on as long as necessary after the end. */typedef struct real_pcre {  unsigned long int magic_number;  size_t size;  const unsigned char *tables;  unsigned long int options;  unsigned short int top_bracket;  unsigned short int top_backref;  uschar first_char;  uschar req_char;  uschar code[1];} real_pcre;/* The real format of the extra block returned by pcre_study(). */typedef struct real_pcre_extra {  uschar options;  uschar start_bits[32];} real_pcre_extra;/* Structure for passing "static" information around between the functionsdoing the compiling, so that they are thread-safe. */typedef struct compile_data {  const uschar *lcc;            /* Points to lower casing table */  const uschar *fcc;            /* Points to case-flipping table */  const uschar *cbits;          /* Points to character type table */  const uschar *ctypes;         /* Points to table of type maps */} compile_data;/* Structure for passing "static" information around between the functionsdoing the matching, so that they are thread-safe. */typedef struct match_data {  int    errorcode;             /* As it says */  int   *offset_vector;         /* Offset vector */  int    offset_end;            /* One past the end */  int    offset_max;            /* The maximum usable for return data */  const uschar *lcc;            /* Points to lower casing table */  const uschar *ctypes;         /* Points to table of type maps */  BOOL   offset_overflow;       /* Set if too many extractions */  BOOL   notbol;                /* NOTBOL flag */  BOOL   noteol;                /* NOTEOL flag */  BOOL   utf8;                  /* UTF8 flag */  BOOL   endonly;               /* Dollar not before final \n */  BOOL   notempty;              /* Empty string match not wanted */  const uschar *start_pattern;  /* For use when recursing */  const uschar *start_subject;  /* Start of the subject string */  const uschar *end_subject;    /* End of the subject string */  const uschar *start_match;    /* Start of this match attempt */  const uschar *end_match_ptr;  /* Subject position at end match */  int    end_offset_top;        /* Highwater mark at end of match */} match_data;/* Bit definitions for entries in the pcre_ctypes table. */#define ctype_space   0x01#define ctype_letter  0x02#define ctype_digit   0x04#define ctype_xdigit  0x08#define ctype_word    0x10   /* alphameric or '_' */#define ctype_meta    0x80   /* regexp meta char or zero (end pattern) *//* Offsets for the bitmap tables in pcre_cbits. Each table contains a setof bits for a class map. Some classes are built by combining these tables. */#define cbit_space     0      /* [:space:] or \s */#define cbit_xdigit   32      /* [:xdigit:] */#define cbit_digit    64      /* [:digit:] or \d */#define cbit_upper    96      /* [:upper:] */#define cbit_lower   128      /* [:lower:] */#define cbit_word    160      /* [:word:] or \w */#define cbit_graph   192      /* [:graph:] */#define cbit_print   224      /* [:print:] */#define cbit_punct   256      /* [:punct:] */#define cbit_cntrl   288      /* [:cntrl:] */#define cbit_length  320      /* Length of the cbits table *//* Offsets of the various tables from the base tables pointer, andtotal length. */#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)/* End of internal.h */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -