php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
#include "pcre2_internal.h"
Go to the source code of this file.
Data Structures | |
struct | verbitem |
struct | alasitem |
struct | pso |
struct | nest_save |
Macros | |
#define | NLBLOCK cb /* Block containing newline information */ |
#define | PSSTART start_pattern /* Field containing processed string start */ |
#define | PSEND end_pattern /* Field containing processed string end */ |
#define | XDIGIT(c) |
#define | STRING_UTFn_RIGHTPAR STRING_UTF32_RIGHTPAR, 6 |
#define | PUTOFFSET(s, p) |
#define | GETOFFSET(s, p) |
#define | GETPLUSOFFSET(s, p) |
#define | READPLUSOFFSET(s, p) |
#define | SKIPOFFSET(p) |
#define | SIZEOFFSET 1 |
#define | META_CODE(x) |
#define | META_DATA(x) |
#define | META_DIFF(x, y) |
#define | MAX_GROUP_NUMBER 65535u |
#define | MAX_REPEAT_COUNT 65535u |
#define | REPEAT_UNLIMITED (MAX_REPEAT_COUNT+1) |
#define | COMPILE_WORK_SIZE (3000*LINK_SIZE) /* Size in code units */ |
#define | C16_WORK_SIZE ((COMPILE_WORK_SIZE * sizeof(PCRE2_UCHAR))/sizeof(uint16_t)) |
#define | GROUPINFO_DEFAULT_SIZE 256 |
#define | WORK_SIZE_SAFETY_MARGIN (100) |
#define | NAMED_GROUP_LIST_SIZE 20 |
#define | PARSED_PATTERN_DEFAULT_SIZE 1024 |
#define | OFLOW_MAX (INT_MAX - 20) |
#define | META_END 0x80000000u /* End of pattern */ |
#define | META_ALT 0x80010000u /* alternation */ |
#define | META_ATOMIC 0x80020000u /* atomic group */ |
#define | META_BACKREF 0x80030000u /* Back ref */ |
#define | META_BACKREF_BYNAME 0x80040000u /* \k'name' */ |
#define | META_BIGVALUE 0x80050000u /* Next is a literal > META_END */ |
#define | META_CALLOUT_NUMBER 0x80060000u /* (?C with numerical argument */ |
#define | META_CALLOUT_STRING 0x80070000u /* (?C with string argument */ |
#define | META_CAPTURE 0x80080000u /* Capturing parenthesis */ |
#define | META_CIRCUMFLEX 0x80090000u /* ^ metacharacter */ |
#define | META_CLASS 0x800a0000u /* start non-empty class */ |
#define | META_CLASS_EMPTY 0x800b0000u /* empty class */ |
#define | META_CLASS_EMPTY_NOT 0x800c0000u /* negative empty class */ |
#define | META_CLASS_END 0x800d0000u /* end of non-empty class */ |
#define | META_CLASS_NOT 0x800e0000u /* start non-empty negative class */ |
#define | META_COND_ASSERT 0x800f0000u /* (?(?assertion)... */ |
#define | META_COND_DEFINE 0x80100000u /* (?(DEFINE)... */ |
#define | META_COND_NAME 0x80110000u /* (?(<name>)... */ |
#define | META_COND_NUMBER 0x80120000u /* (?(digits)... */ |
#define | META_COND_RNAME 0x80130000u /* (?(R&name)... */ |
#define | META_COND_RNUMBER 0x80140000u /* (?(Rdigits)... */ |
#define | META_COND_VERSION 0x80150000u /* (?(VERSION<op>x.y)... */ |
#define | META_DOLLAR 0x80160000u /* $ metacharacter */ |
#define | META_DOT 0x80170000u /* . metacharacter */ |
#define | META_ESCAPE 0x80180000u /* \d and friends */ |
#define | META_KET 0x80190000u /* closing parenthesis */ |
#define | META_NOCAPTURE 0x801a0000u /* no capture parens */ |
#define | META_OPTIONS 0x801b0000u /* (?i) and friends */ |
#define | META_POSIX 0x801c0000u /* POSIX class item */ |
#define | META_POSIX_NEG 0x801d0000u /* negative POSIX class item */ |
#define | META_RANGE_ESCAPED 0x801e0000u /* range with at least one escape */ |
#define | META_RANGE_LITERAL 0x801f0000u /* range defined literally */ |
#define | META_RECURSE 0x80200000u /* Recursion */ |
#define | META_RECURSE_BYNAME 0x80210000u /* (?&name) */ |
#define | META_SCRIPT_RUN 0x80220000u /* (*script_run:...) */ |
#define | META_LOOKAHEAD 0x80230000u /* (?= */ |
#define | META_LOOKAHEADNOT 0x80240000u /* (?! */ |
#define | META_LOOKBEHIND 0x80250000u /* (?<= */ |
#define | META_LOOKBEHINDNOT 0x80260000u /* (?<! */ |
#define | META_LOOKAHEAD_NA 0x80270000u /* (*napla: */ |
#define | META_LOOKBEHIND_NA 0x80280000u /* (*naplb: */ |
#define | META_MARK 0x80290000u /* (*MARK) */ |
#define | META_ACCEPT 0x802a0000u /* (*ACCEPT) */ |
#define | META_FAIL 0x802b0000u /* (*FAIL) */ |
#define | META_COMMIT 0x802c0000u /* These */ |
#define | META_COMMIT_ARG 0x802d0000u /* pairs */ |
#define | META_PRUNE 0x802e0000u /* must */ |
#define | META_PRUNE_ARG 0x802f0000u /* be */ |
#define | META_SKIP 0x80300000u /* kept */ |
#define | META_SKIP_ARG 0x80310000u /* in */ |
#define | META_THEN 0x80320000u /* this */ |
#define | META_THEN_ARG 0x80330000u /* order */ |
#define | META_ASTERISK 0x80340000u /* * */ |
#define | META_ASTERISK_PLUS 0x80350000u /* *+ */ |
#define | META_ASTERISK_QUERY 0x80360000u /* *? */ |
#define | META_PLUS 0x80370000u /* + */ |
#define | META_PLUS_PLUS 0x80380000u /* ++ */ |
#define | META_PLUS_QUERY 0x80390000u /* +? */ |
#define | META_QUERY 0x803a0000u /* ? */ |
#define | META_QUERY_PLUS 0x803b0000u /* ?+ */ |
#define | META_QUERY_QUERY 0x803c0000u /* ?? */ |
#define | META_MINMAX 0x803d0000u /* {n,m} repeat */ |
#define | META_MINMAX_PLUS 0x803e0000u /* {n,m}+ repeat */ |
#define | META_MINMAX_QUERY 0x803f0000u /* {n,m}? repeat */ |
#define | META_FIRST_QUANTIFIER META_ASTERISK |
#define | META_LAST_QUANTIFIER META_MINMAX_QUERY |
#define | META_ATOMIC_SCRIPT_RUN 0x8fff0000u |
#define | SETBIT(a, b) |
#define | REQ_UNSET 0xffffffffu /* Not yet found anything */ |
#define | REQ_NONE 0xfffffffeu /* Found not fixed character */ |
#define | REQ_CASELESS 0x00000001u /* Code unit in xxcu is caseless */ |
#define | REQ_VARY 0x00000002u /* Code unit is followed by non-literal */ |
#define | GI_SET_FIXED_LENGTH 0x80000000u |
#define | GI_NOT_FIXED_LENGTH 0x40000000u |
#define | GI_FIXED_LENGTH_MASK 0x0000ffffu |
#define | IS_DIGIT(x) |
#define | ESCAPES_FIRST CHAR_0 |
#define | ESCAPES_LAST CHAR_z |
#define | UPPER_CASE(c) |
#define | PC_DIGIT 7 |
#define | PC_GRAPH 8 |
#define | PC_PRINT 9 |
#define | PC_PUNCT 10 |
#define | PC_XDIGIT 13 |
#define | PUBLIC_LITERAL_COMPILE_OPTIONS |
#define | PUBLIC_COMPILE_OPTIONS |
#define | PUBLIC_LITERAL_COMPILE_EXTRA_OPTIONS (PCRE2_EXTRA_MATCH_LINE|PCRE2_EXTRA_MATCH_WORD|PCRE2_EXTRA_CASELESS_RESTRICT) |
#define | PUBLIC_COMPILE_EXTRA_OPTIONS |
#define | NSF_RESET 0x0001u |
#define | NSF_CONDASSERT 0x0002u |
#define | NSF_ATOMICSR 0x0004u |
#define | PARSE_TRACKED_OPTIONS |
#define | PARSE_TRACKED_EXTRA_OPTIONS |
#define | PARSED_LITERAL(c, p) |
#define | RSCAN_CACHE_SIZE 8 |
Typedefs | |
typedef struct verbitem | verbitem |
typedef struct alasitem | alasitem |
typedef struct pso | pso |
typedef struct nest_save | nest_save |
Functions | |
PCRE2_EXP_DEFN pcre2_code *PCRE2_CALL_CONVENTION | pcre2_code_copy (const pcre2_code *code) |
PCRE2_EXP_DEFN pcre2_code *PCRE2_CALL_CONVENTION | pcre2_code_copy_with_tables (const pcre2_code *code) |
PCRE2_EXP_DEFN void PCRE2_CALL_CONVENTION | pcre2_code_free (pcre2_code *code) |
int PRIV | check_escape (PCRE2_SPTR *ptrptr, PCRE2_SPTR ptrend, uint32_t *chptr, int *errorcodeptr, uint32_t options, uint32_t xoptions, BOOL isclass, compile_block *cb) |
PCRE2_EXP_DEFN pcre2_code *PCRE2_CALL_CONVENTION | pcre2_compile (PCRE2_SPTR pattern, PCRE2_SIZE patlen, uint32_t options, int *errorptr, PCRE2_SIZE *erroroffset, pcre2_compile_context *ccontext) |
#define C16_WORK_SIZE ((COMPILE_WORK_SIZE * sizeof(PCRE2_UCHAR))/sizeof(uint16_t)) |
Definition at line 168 of file pcre2_compile.c.
Definition at line 166 of file pcre2_compile.c.
Definition at line 507 of file pcre2_compile.c.
Definition at line 508 of file pcre2_compile.c.
Definition at line 93 of file pcre2_compile.c.
#define GI_FIXED_LENGTH_MASK 0x0000ffffu |
Definition at line 402 of file pcre2_compile.c.
#define GI_NOT_FIXED_LENGTH 0x40000000u |
Definition at line 401 of file pcre2_compile.c.
#define GI_SET_FIXED_LENGTH 0x80000000u |
Definition at line 400 of file pcre2_compile.c.
#define GROUPINFO_DEFAULT_SIZE 256 |
Definition at line 175 of file pcre2_compile.c.
#define IS_DIGIT | ( | x | ) |
Definition at line 408 of file pcre2_compile.c.
Definition at line 147 of file pcre2_compile.c.
Definition at line 148 of file pcre2_compile.c.
#define META_ACCEPT 0x802a0000u /* (*ACCEPT) */ |
Definition at line 266 of file pcre2_compile.c.
#define META_ALT 0x80010000u /* alternation */ |
Definition at line 213 of file pcre2_compile.c.
#define META_ASTERISK 0x80340000u /* * */ |
Definition at line 279 of file pcre2_compile.c.
#define META_ASTERISK_PLUS 0x80350000u /* *+ */ |
Definition at line 280 of file pcre2_compile.c.
#define META_ASTERISK_QUERY 0x80360000u /* *? */ |
Definition at line 281 of file pcre2_compile.c.
#define META_ATOMIC 0x80020000u /* atomic group */ |
Definition at line 214 of file pcre2_compile.c.
#define META_ATOMIC_SCRIPT_RUN 0x8fff0000u |
Definition at line 300 of file pcre2_compile.c.
#define META_BACKREF 0x80030000u /* Back ref */ |
Definition at line 215 of file pcre2_compile.c.
Definition at line 216 of file pcre2_compile.c.
Definition at line 217 of file pcre2_compile.c.
Definition at line 218 of file pcre2_compile.c.
Definition at line 219 of file pcre2_compile.c.
#define META_CAPTURE 0x80080000u /* Capturing parenthesis */ |
Definition at line 220 of file pcre2_compile.c.
#define META_CIRCUMFLEX 0x80090000u /* ^ metacharacter */ |
Definition at line 221 of file pcre2_compile.c.
Definition at line 222 of file pcre2_compile.c.
#define META_CLASS_EMPTY 0x800b0000u /* empty class */ |
Definition at line 223 of file pcre2_compile.c.
#define META_CLASS_EMPTY_NOT 0x800c0000u /* negative empty class */ |
Definition at line 224 of file pcre2_compile.c.
Definition at line 225 of file pcre2_compile.c.
Definition at line 226 of file pcre2_compile.c.
#define META_CODE | ( | x | ) |
Definition at line 113 of file pcre2_compile.c.
#define META_COMMIT 0x802c0000u /* These */ |
Definition at line 268 of file pcre2_compile.c.
#define META_COMMIT_ARG 0x802d0000u /* pairs */ |
Definition at line 269 of file pcre2_compile.c.
#define META_COND_ASSERT 0x800f0000u /* (?(?assertion)... */ |
Definition at line 227 of file pcre2_compile.c.
#define META_COND_DEFINE 0x80100000u /* (?(DEFINE)... */ |
Definition at line 228 of file pcre2_compile.c.
Definition at line 229 of file pcre2_compile.c.
#define META_COND_NUMBER 0x80120000u /* (?(digits)... */ |
Definition at line 230 of file pcre2_compile.c.
Definition at line 231 of file pcre2_compile.c.
#define META_COND_RNUMBER 0x80140000u /* (?(Rdigits)... */ |
Definition at line 232 of file pcre2_compile.c.
#define META_COND_VERSION 0x80150000u /* (?(VERSION<op>x.y)... */ |
Definition at line 233 of file pcre2_compile.c.
#define META_DATA | ( | x | ) |
Definition at line 114 of file pcre2_compile.c.
#define META_DIFF | ( | x, | |
y ) |
Definition at line 115 of file pcre2_compile.c.
#define META_DOLLAR 0x80160000u /* $ metacharacter */ |
Definition at line 234 of file pcre2_compile.c.
#define META_DOT 0x80170000u /* . metacharacter */ |
Definition at line 235 of file pcre2_compile.c.
#define META_END 0x80000000u /* End of pattern */ |
Definition at line 211 of file pcre2_compile.c.
#define META_ESCAPE 0x80180000u /* \d and friends */ |
Definition at line 236 of file pcre2_compile.c.
Definition at line 267 of file pcre2_compile.c.
#define META_FIRST_QUANTIFIER META_ASTERISK |
Definition at line 292 of file pcre2_compile.c.
#define META_KET 0x80190000u /* closing parenthesis */ |
Definition at line 237 of file pcre2_compile.c.
#define META_LAST_QUANTIFIER META_MINMAX_QUERY |
Definition at line 293 of file pcre2_compile.c.
#define META_LOOKAHEAD 0x80230000u /* (?= */ |
Definition at line 251 of file pcre2_compile.c.
#define META_LOOKAHEAD_NA 0x80270000u /* (*napla: */ |
Definition at line 258 of file pcre2_compile.c.
#define META_LOOKAHEADNOT 0x80240000u /* (?! */ |
Definition at line 252 of file pcre2_compile.c.
#define META_LOOKBEHIND 0x80250000u /* (?<= */ |
Definition at line 253 of file pcre2_compile.c.
#define META_LOOKBEHIND_NA 0x80280000u /* (*naplb: */ |
Definition at line 259 of file pcre2_compile.c.
#define META_LOOKBEHINDNOT 0x80260000u /* (?<! */ |
Definition at line 254 of file pcre2_compile.c.
Definition at line 265 of file pcre2_compile.c.
Definition at line 288 of file pcre2_compile.c.
Definition at line 289 of file pcre2_compile.c.
Definition at line 290 of file pcre2_compile.c.
#define META_NOCAPTURE 0x801a0000u /* no capture parens */ |
Definition at line 238 of file pcre2_compile.c.
#define META_OPTIONS 0x801b0000u /* (?i) and friends */ |
Definition at line 239 of file pcre2_compile.c.
#define META_PLUS 0x80370000u /* + */ |
Definition at line 282 of file pcre2_compile.c.
#define META_PLUS_PLUS 0x80380000u /* ++ */ |
Definition at line 283 of file pcre2_compile.c.
#define META_PLUS_QUERY 0x80390000u /* +? */ |
Definition at line 284 of file pcre2_compile.c.
#define META_POSIX 0x801c0000u /* POSIX class item */ |
Definition at line 240 of file pcre2_compile.c.
#define META_POSIX_NEG 0x801d0000u /* negative POSIX class item */ |
Definition at line 241 of file pcre2_compile.c.
#define META_PRUNE 0x802e0000u /* must */ |
Definition at line 270 of file pcre2_compile.c.
#define META_PRUNE_ARG 0x802f0000u /* be */ |
Definition at line 271 of file pcre2_compile.c.
#define META_QUERY 0x803a0000u /* ? */ |
Definition at line 285 of file pcre2_compile.c.
#define META_QUERY_PLUS 0x803b0000u /* ?+ */ |
Definition at line 286 of file pcre2_compile.c.
#define META_QUERY_QUERY 0x803c0000u /* ?? */ |
Definition at line 287 of file pcre2_compile.c.
#define META_RANGE_ESCAPED 0x801e0000u /* range with at least one escape */ |
Definition at line 242 of file pcre2_compile.c.
Definition at line 243 of file pcre2_compile.c.
#define META_RECURSE 0x80200000u /* Recursion */ |
Definition at line 244 of file pcre2_compile.c.
Definition at line 245 of file pcre2_compile.c.
#define META_SCRIPT_RUN 0x80220000u /* (*script_run:...) */ |
Definition at line 246 of file pcre2_compile.c.
#define META_SKIP 0x80300000u /* kept */ |
Definition at line 272 of file pcre2_compile.c.
#define META_SKIP_ARG 0x80310000u /* in */ |
Definition at line 273 of file pcre2_compile.c.
#define META_THEN 0x80320000u /* this */ |
Definition at line 274 of file pcre2_compile.c.
#define META_THEN_ARG 0x80330000u /* order */ |
Definition at line 275 of file pcre2_compile.c.
#define NAMED_GROUP_LIST_SIZE 20 |
Definition at line 187 of file pcre2_compile.c.
Definition at line 46 of file pcre2_compile.c.
#define NSF_ATOMICSR 0x0004u |
Definition at line 2736 of file pcre2_compile.c.
#define NSF_CONDASSERT 0x0002u |
Definition at line 2735 of file pcre2_compile.c.
#define NSF_RESET 0x0001u |
Definition at line 2734 of file pcre2_compile.c.
Definition at line 200 of file pcre2_compile.c.
#define PARSE_TRACKED_EXTRA_OPTIONS |
Definition at line 2747 of file pcre2_compile.c.
#define PARSE_TRACKED_OPTIONS |
Definition at line 2743 of file pcre2_compile.c.
#define PARSED_PATTERN_DEFAULT_SIZE 1024 |
Definition at line 193 of file pcre2_compile.c.
#define PC_DIGIT 7 |
Definition at line 709 of file pcre2_compile.c.
#define PC_GRAPH 8 |
Definition at line 710 of file pcre2_compile.c.
#define PC_PRINT 9 |
Definition at line 711 of file pcre2_compile.c.
#define PC_PUNCT 10 |
Definition at line 712 of file pcre2_compile.c.
#define PC_XDIGIT 13 |
Definition at line 713 of file pcre2_compile.c.
Definition at line 48 of file pcre2_compile.c.
Definition at line 47 of file pcre2_compile.c.
#define PUBLIC_COMPILE_EXTRA_OPTIONS |
Definition at line 786 of file pcre2_compile.c.
#define PUBLIC_COMPILE_OPTIONS |
Definition at line 774 of file pcre2_compile.c.
#define PUBLIC_LITERAL_COMPILE_EXTRA_OPTIONS (PCRE2_EXTRA_MATCH_LINE|PCRE2_EXTRA_MATCH_WORD|PCRE2_EXTRA_CASELESS_RESTRICT) |
Definition at line 783 of file pcre2_compile.c.
#define PUBLIC_LITERAL_COMPILE_OPTIONS |
Definition at line 769 of file pcre2_compile.c.
#define REPEAT_UNLIMITED (MAX_REPEAT_COUNT+1) |
Definition at line 149 of file pcre2_compile.c.
#define REQ_CASELESS 0x00000001u /* Code unit in xxcu is caseless */ |
Definition at line 395 of file pcre2_compile.c.
#define REQ_NONE 0xfffffffeu /* Found not fixed character */ |
Definition at line 394 of file pcre2_compile.c.
#define REQ_UNSET 0xffffffffu /* Not yet found anything */ |
Definition at line 393 of file pcre2_compile.c.
#define REQ_VARY 0x00000002u /* Code unit is followed by non-literal */ |
Definition at line 396 of file pcre2_compile.c.
#define RSCAN_CACHE_SIZE 8 |
Definition at line 386 of file pcre2_compile.c.
#define SIZEOFFSET 1 |
Definition at line 97 of file pcre2_compile.c.
Definition at line 96 of file pcre2_compile.c.
#define STRING_UTFn_RIGHTPAR STRING_UTF32_RIGHTPAR, 6 |
Definition at line 83 of file pcre2_compile.c.
#define UPPER_CASE | ( | c | ) |
Definition at line 509 of file pcre2_compile.c.
#define WORK_SIZE_SAFETY_MARGIN (100) |
Definition at line 180 of file pcre2_compile.c.
#define XDIGIT | ( | c | ) |
Definition at line 77 of file pcre2_compile.c.
typedef struct alasitem alasitem |
typedef struct nest_save nest_save |
typedef struct pso pso |
typedef struct verbitem verbitem |
anonymous enum |
Definition at line 801 of file pcre2_compile.c.
anonymous enum |
Enumerator | |
---|---|
PSKIP_ALT | |
PSKIP_CLASS | |
PSKIP_KET |
Definition at line 375 of file pcre2_compile.c.
anonymous enum |
Enumerator | |
---|---|
RANGE_NO | |
RANGE_STARTED | |
RANGE_OK_ESCAPED | |
RANGE_OK_LITERAL |
Definition at line 2754 of file pcre2_compile.c.
anonymous enum |
Enumerator | |
---|---|
PSO_OPT | |
PSO_FLG | |
PSO_NL | |
PSO_BSR | |
PSO_LIMH | |
PSO_LIMM | |
PSO_LIMD |
Definition at line 819 of file pcre2_compile.c.
int PRIV check_escape | ( | PCRE2_SPTR * | ptrptr, |
PCRE2_SPTR | ptrend, | ||
uint32_t * | chptr, | ||
int * | errorcodeptr, | ||
uint32_t | options, | ||
uint32_t | xoptions, | ||
BOOL | isclass, | ||
compile_block * | cb ) |
Definition at line 1551 of file pcre2_compile.c.
PCRE2_EXP_DEFN pcre2_code *PCRE2_CALL_CONVENTION pcre2_code_copy | ( | const pcre2_code * | code | ) |
Definition at line 1200 of file pcre2_compile.c.
PCRE2_EXP_DEFN pcre2_code *PCRE2_CALL_CONVENTION pcre2_code_copy_with_tables | ( | const pcre2_code * | code | ) |
Definition at line 1234 of file pcre2_compile.c.
PCRE2_EXP_DEFN void PCRE2_CALL_CONVENTION pcre2_code_free | ( | pcre2_code * | code | ) |
Definition at line 1269 of file pcre2_compile.c.
PCRE2_EXP_DEFN pcre2_code *PCRE2_CALL_CONVENTION pcre2_compile | ( | PCRE2_SPTR | pattern, |
PCRE2_SIZE | patlen, | ||
uint32_t | options, | ||
int * | errorptr, | ||
PCRE2_SIZE * | erroroffset, | ||
pcre2_compile_context * | ccontext ) |
Definition at line 10126 of file pcre2_compile.c.