re 249 ext/ereg/ereg.c static void php_ereg_eprint(int err, regex_t *re TSRMLS_DC) { re 256 ext/ereg/ereg.c buf_len = regerror(REG_ITOA | err, re, NULL, 0); re 261 ext/ereg/ereg.c regerror(REG_ITOA | err, re, buf, buf_len); re 266 ext/ereg/ereg.c len = regerror(err, re, NULL, 0); re 277 ext/ereg/ereg.c regerror(err, re, message + buf_len, len); re 295 ext/ereg/ereg.c regex_t re; re 319 ext/ereg/ereg.c err = regcomp(&re, Z_STRVAL_PP(regex), REG_EXTENDED | copts); re 327 ext/ereg/ereg.c err = regcomp(&re, Z_STRVAL_PP(regex), copts); re 331 ext/ereg/ereg.c php_ereg_eprint(err, &re TSRMLS_CC); re 339 ext/ereg/ereg.c subs = (regmatch_t *)ecalloc(sizeof(regmatch_t),re.re_nsub+1); re 342 ext/ereg/ereg.c err = regexec(&re, string, re.re_nsub+1, subs, 0); re 344 ext/ereg/ereg.c php_ereg_eprint(err, &re TSRMLS_CC); re 345 ext/ereg/ereg.c regfree(&re); re 360 ext/ereg/ereg.c for (i = 0; i <= re.re_nsub; i++) { re 381 ext/ereg/ereg.c regfree(&re); re 405 ext/ereg/ereg.c regex_t re; re 425 ext/ereg/ereg.c err = regcomp(&re, pattern, copts); re 427 ext/ereg/ereg.c php_ereg_eprint(err, &re TSRMLS_CC); re 433 ext/ereg/ereg.c subs = (regmatch_t *)ecalloc(sizeof(regmatch_t),re.re_nsub+1); re 443 ext/ereg/ereg.c err = regexec(&re, &string[pos], re.re_nsub+1, subs, (pos ? REG_NOTBOL : 0)); re 446 ext/ereg/ereg.c php_ereg_eprint(err, &re TSRMLS_CC); re 449 ext/ereg/ereg.c regfree(&re); re 464 ext/ereg/ereg.c if ('\\' == *walk && isdigit((unsigned char)walk[1]) && ((unsigned char)walk[1]) - '0' <= (int)re.re_nsub) { re 490 ext/ereg/ereg.c if ('\\' == *walk && isdigit((unsigned char)walk[1]) && (unsigned char)walk[1] - '0' <= (int)re.re_nsub) { re 541 ext/ereg/ereg.c regfree(&re); re 632 ext/ereg/ereg.c regex_t re; re 649 ext/ereg/ereg.c err = regcomp(&re, spliton, REG_EXTENDED | copts); re 651 ext/ereg/ereg.c php_ereg_eprint(err, &re TSRMLS_CC); re 658 ext/ereg/ereg.c while ((count == -1 || count > 1) && !(err = regexec(&re, strp, 1, subs, 0))) { re 666 ext/ereg/ereg.c regfree(&re); re 695 ext/ereg/ereg.c php_ereg_eprint(err, &re TSRMLS_CC); re 696 ext/ereg/ereg.c regfree(&re); re 707 ext/ereg/ereg.c regfree(&re); re 31 ext/ereg/regex/main.c regex_t re; re 78 ext/ereg/regex/main.c err = regcomp(&re, argv[optind++], copts); re 80 ext/ereg/regex/main.c len = regerror(err, &re, erbuf, sizeof(erbuf)); re 85 ext/ereg/regex/main.c regprint(&re, stdout); re 88 ext/ereg/regex/main.c regfree(&re); re 96 ext/ereg/regex/main.c err = regexec(&re, argv[optind], (size_t)NS, subs, eopts); re 98 ext/ereg/regex/main.c len = regerror(err, &re, erbuf, sizeof(erbuf)); re 140 ext/ereg/regex/main.c regex_t re; re 186 ext/ereg/regex/main.c re.re_endp = bpname; re 187 ext/ereg/regex/main.c ne = regerror(REG_ATOI, &re, erbuf, sizeof(erbuf)); re 212 ext/ereg/regex/main.c regex_t re; re 228 ext/ereg/regex/main.c re.re_endp = (opts®_PEND) ? f0copy + strlen(f0copy) : NULL; re 230 ext/ereg/regex/main.c err = regcomp(&re, f0copy, opts); re 233 ext/ereg/regex/main.c len = regerror(err, &re, erbuf, sizeof(erbuf)); re 247 ext/ereg/regex/main.c regfree(&re); re 260 ext/ereg/regex/main.c err = regexec(&re, f2copy, NSUBS, subs, options('e', f1)); re 264 ext/ereg/regex/main.c len = regerror(err, &re, erbuf, sizeof(erbuf)); re 286 ext/ereg/regex/main.c regfree(&re); re 307 ext/ereg/regex/main.c regfree(&re); re 503 ext/ereg/regex/main.c regex_t re; re 507 ext/ereg/regex/main.c re.re_endp = efbuf; re 508 ext/ereg/regex/main.c (void) regerror(REG_ATOI, &re, efbuf, sizeof(efbuf)); re 419 ext/filter/logical_filters.c pcre *re = NULL; re 435 ext/filter/logical_filters.c re = pcre_get_compiled_regex(regexp, &pcre_extra, &preg_options TSRMLS_CC); re 436 ext/filter/logical_filters.c if (!re) { re 439 ext/filter/logical_filters.c matches = pcre_exec(re, NULL, Z_STRVAL_P(value), Z_STRLEN_P(value), 0, 0, ovector, 3); re 531 ext/filter/logical_filters.c pcre *re = NULL; re 543 ext/filter/logical_filters.c re = pcre_get_compiled_regex((char *)regexp, &pcre_extra, &preg_options TSRMLS_CC); re 544 ext/filter/logical_filters.c if (!re) { re 547 ext/filter/logical_filters.c matches = pcre_exec(re, NULL, Z_STRVAL_P(value), Z_STRLEN_P(value), 0, 0, ovector, 3); re 1444 ext/mbstring/mbstring.c void *re = NULL; re 1453 ext/mbstring/mbstring.c if (!(re = _php_mb_compile_regex(Z_STRVAL(tmp) TSRMLS_CC))) { re 1463 ext/mbstring/mbstring.c MBSTRG(http_output_conv_mimetypes) = re; re 695 ext/mbstring/php_mbregex.c php_mb_regex_t *re; re 728 ext/mbstring/php_mbregex.c re = php_mbregex_compile_pattern(Z_STRVAL_PP(arg_pattern), Z_STRLEN_PP(arg_pattern), options, MBREX(current_mbctype), MBREX(regex_default_syntax) TSRMLS_CC); re 729 ext/mbstring/php_mbregex.c if (re == NULL) { re 737 ext/mbstring/php_mbregex.c if (onig_search(re, (OnigUChar *)string, (OnigUChar *)(string + string_len), (OnigUChar *)string, (OnigUChar *)(string + string_len), regs, 0) < 0) { re 804 ext/mbstring/php_mbregex.c php_mb_regex_t *re; re 870 ext/mbstring/php_mbregex.c re = php_mbregex_compile_pattern(arg_pattern, arg_pattern_len, options, MBREX(current_mbctype), syntax TSRMLS_CC); re 871 ext/mbstring/php_mbregex.c if (re == NULL) { re 896 ext/mbstring/php_mbregex.c err = onig_search(re, (OnigUChar *)string, (OnigUChar *)string_lim, pos, (OnigUChar *)string_lim, regs, 0); re 1055 ext/mbstring/php_mbregex.c php_mb_regex_t *re; re 1073 ext/mbstring/php_mbregex.c if ((re = php_mbregex_compile_pattern(arg_pattern, arg_pattern_len, MBREX(regex_default_options), MBREX(current_mbctype), MBREX(regex_default_syntax) TSRMLS_CC)) == NULL) { re 1085 ext/mbstring/php_mbregex.c err = onig_search(re, (OnigUChar *)string, (OnigUChar *)(string + string_len), pos, (OnigUChar *)(string + string_len), regs, 0); re 1138 ext/mbstring/php_mbregex.c php_mb_regex_t *re; re 1161 ext/mbstring/php_mbregex.c if ((re = php_mbregex_compile_pattern(arg_pattern, arg_pattern_len, option, MBREX(current_mbctype), syntax TSRMLS_CC)) == NULL) { re 1166 ext/mbstring/php_mbregex.c err = onig_match(re, (OnigUChar *)string, (OnigUChar *)(string + string_len), (OnigUChar *)string, NULL, 0); re 8996 ext/pcre/pcrelib/pcre_compile.c REAL_PCRE *re; re 9344 ext/pcre/pcrelib/pcre_compile.c re = (REAL_PCRE *)(PUBL(malloc))(size); re 9345 ext/pcre/pcrelib/pcre_compile.c if (re == NULL) re 9357 ext/pcre/pcrelib/pcre_compile.c re->magic_number = MAGIC_NUMBER; re 9358 ext/pcre/pcrelib/pcre_compile.c re->size = (int)size; re 9359 ext/pcre/pcrelib/pcre_compile.c re->options = cd->external_options; re 9360 ext/pcre/pcrelib/pcre_compile.c re->flags = cd->external_flags; re 9361 ext/pcre/pcrelib/pcre_compile.c re->limit_match = limit_match; re 9362 ext/pcre/pcrelib/pcre_compile.c re->limit_recursion = limit_recursion; re 9363 ext/pcre/pcrelib/pcre_compile.c re->first_char = 0; re 9364 ext/pcre/pcrelib/pcre_compile.c re->req_char = 0; re 9365 ext/pcre/pcrelib/pcre_compile.c re->name_table_offset = sizeof(REAL_PCRE) / sizeof(pcre_uchar); re 9366 ext/pcre/pcrelib/pcre_compile.c re->name_entry_size = cd->name_entry_size; re 9367 ext/pcre/pcrelib/pcre_compile.c re->name_count = cd->names_found; re 9368 ext/pcre/pcrelib/pcre_compile.c re->ref_count = 0; re 9369 ext/pcre/pcrelib/pcre_compile.c re->tables = (tables == PRIV(default_tables))? NULL : tables; re 9370 ext/pcre/pcrelib/pcre_compile.c re->nullpad = NULL; re 9372 ext/pcre/pcrelib/pcre_compile.c re->dummy = 0; re 9374 ext/pcre/pcrelib/pcre_compile.c re->dummy1 = re->dummy2 = re->dummy3 = 0; re 9389 ext/pcre/pcrelib/pcre_compile.c cd->name_table = (pcre_uchar *)re + re->name_table_offset; re 9390 ext/pcre/pcrelib/pcre_compile.c codestart = cd->name_table + re->name_entry_size * re->name_count; re 9421 ext/pcre/pcrelib/pcre_compile.c (void)compile_regex(re->options, &code, &ptr, &errorcode, FALSE, FALSE, 0, 0, re 9423 ext/pcre/pcrelib/pcre_compile.c re->top_bracket = cd->bracount; re 9424 ext/pcre/pcrelib/pcre_compile.c re->top_backref = cd->top_backref; re 9425 ext/pcre/pcrelib/pcre_compile.c re->max_lookbehind = cd->max_lookbehind; re 9426 ext/pcre/pcrelib/pcre_compile.c re->flags = cd->external_flags | PCRE_MODE; re 9497 ext/pcre/pcrelib/pcre_compile.c if (errorcode == 0 && re->top_backref > re->top_bracket) errorcode = ERR15; re 9539 ext/pcre/pcrelib/pcre_compile.c fixed_length = find_fixedlength(cc, (re->options & PCRE_UTF8) != 0, TRUE, re 9560 ext/pcre/pcrelib/pcre_compile.c (PUBL(free))(re); re 9580 ext/pcre/pcrelib/pcre_compile.c if ((re->options & PCRE_ANCHORED) == 0) re 9582 ext/pcre/pcrelib/pcre_compile.c if (is_anchored(codestart, 0, cd, 0)) re->options |= PCRE_ANCHORED; re 9590 ext/pcre/pcrelib/pcre_compile.c re->first_char = firstchar & 0xff; re 9592 ext/pcre/pcrelib/pcre_compile.c re->first_char = firstchar & 0xffff; re 9594 ext/pcre/pcrelib/pcre_compile.c re->first_char = firstchar; re 9602 ext/pcre/pcrelib/pcre_compile.c if (re->first_char < 128) re 9604 ext/pcre/pcrelib/pcre_compile.c if (cd->fcc[re->first_char] != re->first_char) re 9605 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_FCH_CASELESS; re 9607 ext/pcre/pcrelib/pcre_compile.c else if (UCD_OTHERCASE(re->first_char) != re->first_char) re 9608 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_FCH_CASELESS; re 9612 ext/pcre/pcrelib/pcre_compile.c if (MAX_255(re->first_char) re 9613 ext/pcre/pcrelib/pcre_compile.c && cd->fcc[re->first_char] != re->first_char) re 9614 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_FCH_CASELESS; re 9617 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_FIRSTSET; re 9620 ext/pcre/pcrelib/pcre_compile.c else if (is_startline(codestart, 0, cd, 0)) re->flags |= PCRE_STARTLINE; re 9629 ext/pcre/pcrelib/pcre_compile.c ((re->options & PCRE_ANCHORED) == 0 || (reqcharflags & REQ_VARY) != 0)) re 9632 ext/pcre/pcrelib/pcre_compile.c re->req_char = reqchar & 0xff; re 9634 ext/pcre/pcrelib/pcre_compile.c re->req_char = reqchar & 0xffff; re 9636 ext/pcre/pcrelib/pcre_compile.c re->req_char = reqchar; re 9644 ext/pcre/pcrelib/pcre_compile.c if (re->req_char < 128) re 9646 ext/pcre/pcrelib/pcre_compile.c if (cd->fcc[re->req_char] != re->req_char) re 9647 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_RCH_CASELESS; re 9649 ext/pcre/pcrelib/pcre_compile.c else if (UCD_OTHERCASE(re->req_char) != re->req_char) re 9650 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_RCH_CASELESS; re 9654 ext/pcre/pcrelib/pcre_compile.c if (MAX_255(re->req_char) && cd->fcc[re->req_char] != re->req_char) re 9655 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_RCH_CASELESS; re 9658 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_REQCHSET; re 9666 ext/pcre/pcrelib/pcre_compile.c length, re->top_bracket, re->top_backref); re 9668 ext/pcre/pcrelib/pcre_compile.c printf("Options=%08x\n", re->options); re 9670 ext/pcre/pcrelib/pcre_compile.c if ((re->flags & PCRE_FIRSTSET) != 0) re 9672 ext/pcre/pcrelib/pcre_compile.c pcre_uchar ch = re->first_char; re 9674 ext/pcre/pcrelib/pcre_compile.c ((re->flags & PCRE_FCH_CASELESS) == 0)? "" : " (caseless)"; re 9679 ext/pcre/pcrelib/pcre_compile.c if ((re->flags & PCRE_REQCHSET) != 0) re 9681 ext/pcre/pcrelib/pcre_compile.c pcre_uchar ch = re->req_char; re 9683 ext/pcre/pcrelib/pcre_compile.c ((re->flags & PCRE_RCH_CASELESS) == 0)? "" : " (caseless)"; re 9689 ext/pcre/pcrelib/pcre_compile.c pcre_printint((pcre *)re, stdout, TRUE); re 9691 ext/pcre/pcrelib/pcre_compile.c pcre16_printint((pcre *)re, stdout, TRUE); re 9693 ext/pcre/pcrelib/pcre_compile.c pcre32_printint((pcre *)re, stdout, TRUE); re 9701 ext/pcre/pcrelib/pcre_compile.c (PUBL(free))(re); re 9716 ext/pcre/pcrelib/pcre_compile.c re->flags |= PCRE_MATCH_EMPTY; re 9724 ext/pcre/pcrelib/pcre_compile.c return (pcre *)re; re 9726 ext/pcre/pcrelib/pcre_compile.c return (pcre16 *)re; re 9728 ext/pcre/pcrelib/pcre_compile.c return (pcre32 *)re; re 323 ext/pcre/pcrelib/pcre_exec.c #define RMATCH(ra,rb,rc,rd,re,rw) \ re 326 ext/pcre/pcrelib/pcre_exec.c rrc = match(ra,rb,mstart,rc,rd,re,rdepth+1); \ re 335 ext/pcre/pcrelib/pcre_exec.c #define RMATCH(ra,rb,rc,rd,re,rw) \ re 336 ext/pcre/pcrelib/pcre_exec.c rrc = match(ra,rb,mstart,rc,rd,re,rdepth+1) re 349 ext/pcre/pcrelib/pcre_exec.c #define RMATCH(ra,rb,rc,rd,re,rw)\ re 364 ext/pcre/pcrelib/pcre_exec.c newframe->Xeptrb = re;\ re 6386 ext/pcre/pcrelib/pcre_exec.c const REAL_PCRE *re = (const REAL_PCRE *)argument_re; re 6400 ext/pcre/pcrelib/pcre_exec.c if (re == NULL && extra_data == NULL && subject == NULL && length == -999 && re 6411 ext/pcre/pcrelib/pcre_exec.c if (re == NULL || subject == NULL || (offsets == NULL && offsetcount > 0)) re 6422 ext/pcre/pcrelib/pcre_exec.c if (re->magic_number != MAGIC_NUMBER) re 6423 ext/pcre/pcrelib/pcre_exec.c return re->magic_number == REVERSED_MAGIC_NUMBER? re 6425 ext/pcre/pcrelib/pcre_exec.c if ((re->flags & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE; re 6433 ext/pcre/pcrelib/pcre_exec.c utf = md->utf = (re->options & PCRE_UTF8) != 0; re 6496 ext/pcre/pcrelib/pcre_exec.c md->name_table = (pcre_uchar *)re + re->name_table_offset; re 6497 ext/pcre/pcrelib/pcre_exec.c md->name_count = re->name_count; re 6498 ext/pcre/pcrelib/pcre_exec.c md->name_entry_size = re->name_entry_size; re 6510 ext/pcre/pcrelib/pcre_exec.c tables = re->tables; re 6530 ext/pcre/pcrelib/pcre_exec.c if ((re->flags & PCRE_MLSET) != 0 && re->limit_match < md->match_limit) re 6531 ext/pcre/pcrelib/pcre_exec.c md->match_limit = re->limit_match; re 6533 ext/pcre/pcrelib/pcre_exec.c if ((re->flags & PCRE_RLSET) != 0 && re 6534 ext/pcre/pcrelib/pcre_exec.c re->limit_recursion < md->match_limit_recursion) re 6535 ext/pcre/pcrelib/pcre_exec.c md->match_limit_recursion = re->limit_recursion; re 6545 ext/pcre/pcrelib/pcre_exec.c anchored = ((re->options | options) & PCRE_ANCHORED) != 0; re 6546 ext/pcre/pcrelib/pcre_exec.c startline = (re->flags & PCRE_STARTLINE) != 0; re 6547 ext/pcre/pcrelib/pcre_exec.c firstline = (re->options & PCRE_FIRSTLINE) != 0; re 6551 ext/pcre/pcrelib/pcre_exec.c md->start_code = (const pcre_uchar *)re + re->name_table_offset + re 6552 ext/pcre/pcrelib/pcre_exec.c re->name_count * re->name_entry_size; re 6559 ext/pcre/pcrelib/pcre_exec.c md->endonly = (re->options & PCRE_DOLLAR_ENDONLY) != 0; re 6560 ext/pcre/pcrelib/pcre_exec.c md->use_ucp = (re->options & PCRE_UCP) != 0; re 6561 ext/pcre/pcrelib/pcre_exec.c md->jscript_compat = (re->options & PCRE_JAVASCRIPT_COMPAT) != 0; re 6576 ext/pcre/pcrelib/pcre_exec.c md->hasthen = (re->flags & PCRE_HASTHEN) != 0; re 6587 ext/pcre/pcrelib/pcre_exec.c if ((re->options & (PCRE_BSR_ANYCRLF|PCRE_BSR_UNICODE)) != 0) re 6588 ext/pcre/pcrelib/pcre_exec.c md->bsr_anycrlf = (re->options & PCRE_BSR_ANYCRLF) != 0; re 6611 ext/pcre/pcrelib/pcre_exec.c switch ((((options & PCRE_NEWLINE_BITS) == 0)? re->options : re 6652 ext/pcre/pcrelib/pcre_exec.c if (md->partial && (re->flags & PCRE_NOPARTIAL) != 0) re 6663 ext/pcre/pcrelib/pcre_exec.c if (re->top_backref > 0 && re->top_backref >= ocount/3) re 6665 ext/pcre/pcrelib/pcre_exec.c ocount = re->top_backref * 3 + 3; re 6685 ext/pcre/pcrelib/pcre_exec.c register int *iend = iptr - re->top_bracket; re 6700 ext/pcre/pcrelib/pcre_exec.c if ((re->flags & PCRE_FIRSTSET) != 0) re 6703 ext/pcre/pcrelib/pcre_exec.c first_char = first_char2 = (pcre_uchar)(re->first_char); re 6704 ext/pcre/pcrelib/pcre_exec.c if ((re->flags & PCRE_FCH_CASELESS) != 0) re 6722 ext/pcre/pcrelib/pcre_exec.c if ((re->flags & PCRE_REQCHSET) != 0) re 6725 ext/pcre/pcrelib/pcre_exec.c req_char = req_char2 = (pcre_uchar)(re->req_char); re 6726 ext/pcre/pcrelib/pcre_exec.c if ((re->flags & PCRE_RCH_CASELESS) != 0) re 6777 ext/pcre/pcrelib/pcre_exec.c if (((options | re->options) & PCRE_NO_START_OPTIMIZE) == 0) re 6850 ext/pcre/pcrelib/pcre_exec.c if (((options | re->options) & PCRE_NO_START_OPTIMIZE) == 0 && !md->partial) re 7026 ext/pcre/pcrelib/pcre_exec.c (re->flags & PCRE_HASCRORLF) == 0 && re 7088 ext/pcre/pcrelib/pcre_exec.c if (md->end_offset_top/2 <= re->top_bracket && offsets != NULL) re 7091 ext/pcre/pcrelib/pcre_exec.c int resetcount = 2 + re->top_bracket * 2; re 82 ext/pcre/pcrelib/pcre_fullinfo.c const REAL_PCRE *re = (const REAL_PCRE *)argument_re; re 85 ext/pcre/pcrelib/pcre_fullinfo.c if (re == NULL || where == NULL) return PCRE_ERROR_NULL; re 95 ext/pcre/pcrelib/pcre_fullinfo.c if (re->magic_number != MAGIC_NUMBER) re 96 ext/pcre/pcrelib/pcre_fullinfo.c return re->magic_number == REVERSED_MAGIC_NUMBER? re 101 ext/pcre/pcrelib/pcre_fullinfo.c if ((re->flags & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE; re 106 ext/pcre/pcrelib/pcre_fullinfo.c *((unsigned long int *)where) = re->options & PUBLIC_COMPILE_OPTIONS; re 110 ext/pcre/pcrelib/pcre_fullinfo.c *((size_t *)where) = re->size; re 130 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = re->top_bracket; re 134 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = re->top_backref; re 139 ext/pcre/pcrelib/pcre_fullinfo.c ((re->flags & PCRE_FIRSTSET) != 0)? (int)re->first_char : re 140 ext/pcre/pcrelib/pcre_fullinfo.c ((re->flags & PCRE_STARTLINE) != 0)? -1 : -2; re 145 ext/pcre/pcrelib/pcre_fullinfo.c (re->flags & PCRE_FIRSTSET) != 0 ? re->first_char : 0; re 150 ext/pcre/pcrelib/pcre_fullinfo.c ((re->flags & PCRE_FIRSTSET) != 0) ? 1 : re 151 ext/pcre/pcrelib/pcre_fullinfo.c ((re->flags & PCRE_STARTLINE) != 0) ? 2 : 0; re 177 ext/pcre/pcrelib/pcre_fullinfo.c ((re->flags & PCRE_REQCHSET) != 0)? (int)re->req_char : -1; re 182 ext/pcre/pcrelib/pcre_fullinfo.c ((re->flags & PCRE_REQCHSET) != 0) ? re->req_char : 0; re 187 ext/pcre/pcrelib/pcre_fullinfo.c ((re->flags & PCRE_REQCHSET) != 0); re 191 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = re->name_entry_size; re 195 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = re->name_count; re 199 ext/pcre/pcrelib/pcre_fullinfo.c *((const pcre_uchar **)where) = (const pcre_uchar *)re + re->name_table_offset; re 210 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = (re->flags & PCRE_NOPARTIAL) == 0; re 214 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = (re->flags & PCRE_JCHANGED) != 0; re 218 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = (re->flags & PCRE_HASCRORLF) != 0; re 222 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = re->max_lookbehind; re 226 ext/pcre/pcrelib/pcre_fullinfo.c if ((re->flags & PCRE_MLSET) == 0) return PCRE_ERROR_UNSET; re 227 ext/pcre/pcrelib/pcre_fullinfo.c *((pcre_uint32 *)where) = re->limit_match; re 231 ext/pcre/pcrelib/pcre_fullinfo.c if ((re->flags & PCRE_RLSET) == 0) return PCRE_ERROR_UNSET; re 232 ext/pcre/pcrelib/pcre_fullinfo.c *((pcre_uint32 *)where) = re->limit_recursion; re 236 ext/pcre/pcrelib/pcre_fullinfo.c *((int *)where) = (re->flags & PCRE_MATCH_EMPTY) != 0; re 270 ext/pcre/pcrelib/pcre_get.c const REAL_PCRE *re = (const REAL_PCRE *)code; re 282 ext/pcre/pcrelib/pcre_get.c if ((re->options & PCRE_DUPNAMES) == 0 && (re->flags & PCRE_JCHANGED) == 0) re 286 ext/pcre/pcrelib/pcre_get.c if ((re->options & PCRE_DUPNAMES) == 0 && (re->flags & PCRE_JCHANGED) == 0) re 290 ext/pcre/pcrelib/pcre_get.c if ((re->options & PCRE_DUPNAMES) == 0 && (re->flags & PCRE_JCHANGED) == 0) re 2391 ext/pcre/pcrelib/pcre_internal.h #define REAL_PCRE_MAGIC(re) (((REAL_PCRE*)re)->magic_number) re 2392 ext/pcre/pcrelib/pcre_internal.h #define REAL_PCRE_SIZE(re) (((REAL_PCRE*)re)->size) re 2393 ext/pcre/pcrelib/pcre_internal.h #define REAL_PCRE_OPTIONS(re) (((REAL_PCRE*)re)->options) re 2394 ext/pcre/pcrelib/pcre_internal.h #define REAL_PCRE_FLAGS(re) (((REAL_PCRE*)re)->flags) re 9792 ext/pcre/pcrelib/pcre_jit_compile.c PRIV(jit_compile)(const REAL_PCRE *re, PUBL(extra) *extra, int mode) re 9798 ext/pcre/pcrelib/pcre_jit_compile.c const pcre_uint8 *tables = re->tables; re 9826 ext/pcre/pcrelib/pcre_jit_compile.c rootbacktrack.cc = (pcre_uchar *)re + re->name_table_offset + re->name_count * re->name_entry_size; re 9835 ext/pcre/pcrelib/pcre_jit_compile.c switch(re->options & PCRE_NEWLINE_BITS) re 9856 ext/pcre/pcrelib/pcre_jit_compile.c if ((re->options & PCRE_BSR_ANYCRLF) != 0) re 9858 ext/pcre/pcrelib/pcre_jit_compile.c else if ((re->options & PCRE_BSR_UNICODE) != 0) re 9870 ext/pcre/pcrelib/pcre_jit_compile.c common->endonly = (re->options & PCRE_DOLLAR_ENDONLY) != 0; re 9872 ext/pcre/pcrelib/pcre_jit_compile.c common->name_table = ((pcre_uchar *)re) + re->name_table_offset; re 9873 ext/pcre/pcrelib/pcre_jit_compile.c common->name_count = re->name_count; re 9874 ext/pcre/pcrelib/pcre_jit_compile.c common->name_entry_size = re->name_entry_size; re 9875 ext/pcre/pcrelib/pcre_jit_compile.c common->jscript_compat = (re->options & PCRE_JAVASCRIPT_COMPAT) != 0; re 9878 ext/pcre/pcrelib/pcre_jit_compile.c common->utf = (re->options & PCRE_UTF8) != 0; re 9880 ext/pcre/pcrelib/pcre_jit_compile.c common->use_ucp = (re->options & PCRE_UCP) != 0; re 9910 ext/pcre/pcrelib/pcre_jit_compile.c common->optimized_cbracket = (pcre_uint8 *)SLJIT_MALLOC(re->top_bracket + 1, compiler->allocator_data); re 9914 ext/pcre/pcrelib/pcre_jit_compile.c memset(common->optimized_cbracket, 0, re->top_bracket + 1); re 9916 ext/pcre/pcrelib/pcre_jit_compile.c memset(common->optimized_cbracket, 1, re->top_bracket + 1); re 9931 ext/pcre/pcrelib/pcre_jit_compile.c if (mode == JIT_COMPILE && (re->flags & PCRE_REQCHSET) != 0 && (re->options & PCRE_NO_START_OPTIMIZE) == 0) re 9951 ext/pcre/pcrelib/pcre_jit_compile.c if ((re->options & PCRE_FIRSTLINE) != 0) re 9982 ext/pcre/pcrelib/pcre_jit_compile.c memset(common->optimized_cbracket, 0, re->top_bracket + 1); re 9985 ext/pcre/pcrelib/pcre_jit_compile.c common->cbra_ptr = OVECTOR_START + (re->top_bracket + 1) * 2 * sizeof(sljit_sw); re 9996 ext/pcre/pcrelib/pcre_jit_compile.c private_data_size = common->cbra_ptr + (re->top_bracket + 1) * sizeof(sljit_sw); re 10025 ext/pcre/pcrelib/pcre_jit_compile.c reset_ovector(common, (re->top_bracket + 1) * 2); re 10048 ext/pcre/pcrelib/pcre_jit_compile.c if ((re->options & PCRE_ANCHORED) == 0) re 10050 ext/pcre/pcrelib/pcre_jit_compile.c mainloop_label = mainloop_entry(common, (re->flags & PCRE_HASCRORLF) != 0, (re->options & PCRE_FIRSTLINE) != 0); re 10053 ext/pcre/pcrelib/pcre_jit_compile.c if ((re->options & PCRE_NO_START_OPTIMIZE) == 0) re 10055 ext/pcre/pcrelib/pcre_jit_compile.c if (mode == JIT_COMPILE && fast_forward_first_n_chars(common, (re->options & PCRE_FIRSTLINE) != 0)) re 10057 ext/pcre/pcrelib/pcre_jit_compile.c else if ((re->flags & PCRE_FIRSTSET) != 0) re 10058 ext/pcre/pcrelib/pcre_jit_compile.c fast_forward_first_char(common, (pcre_uchar)re->first_char, (re->flags & PCRE_FCH_CASELESS) != 0, (re->options & PCRE_FIRSTLINE) != 0); re 10059 ext/pcre/pcrelib/pcre_jit_compile.c else if ((re->flags & PCRE_STARTLINE) != 0) re 10060 ext/pcre/pcrelib/pcre_jit_compile.c fast_forward_newline(common, (re->options & PCRE_FIRSTLINE) != 0); re 10062 ext/pcre/pcrelib/pcre_jit_compile.c fast_forward_start_bits(common, study->start_bits, (re->options & PCRE_FIRSTLINE) != 0); re 10068 ext/pcre/pcrelib/pcre_jit_compile.c if (mode == JIT_COMPILE && study->minlength > 0 && (re->options & PCRE_NO_START_OPTIMIZE) == 0) re 10075 ext/pcre/pcrelib/pcre_jit_compile.c reqbyte_notfound = search_requested_char(common, (pcre_uchar)re->req_char, (re->flags & PCRE_RCH_CASELESS) != 0, (re->flags & PCRE_FIRSTSET) != 0); re 10124 ext/pcre/pcrelib/pcre_jit_compile.c copy_ovector(common, re->top_bracket + 1); re 10167 ext/pcre/pcrelib/pcre_jit_compile.c if ((re->options & PCRE_ANCHORED) == 0 && (re->options & PCRE_FIRSTLINE) != 0) re 10175 ext/pcre/pcrelib/pcre_jit_compile.c if ((re->options & PCRE_ANCHORED) == 0) re 10179 ext/pcre/pcrelib/pcre_jit_compile.c if ((re->options & PCRE_FIRSTLINE) == 0) re 10185 ext/pcre/pcrelib/pcre_jit_compile.c if ((re->options & PCRE_FIRSTLINE) == 0) re 10307 ext/pcre/pcrelib/pcre_jit_compile.c do_reset_match(common, (re->top_bracket + 1) * 2); re 10381 ext/pcre/pcrelib/pcre_jit_compile.c functions->top_bracket = (re->top_bracket + 1) * 2; re 10382 ext/pcre/pcrelib/pcre_jit_compile.c functions->limit_match = (re->flags & PCRE_MLSET) != 0 ? re->limit_match : 0; re 82 ext/pcre/pcrelib/pcre_refcount.c REAL_PCRE *re = (REAL_PCRE *)argument_re; re 83 ext/pcre/pcrelib/pcre_refcount.c if (re == NULL) return PCRE_ERROR_NULL; re 84 ext/pcre/pcrelib/pcre_refcount.c if (re->magic_number != MAGIC_NUMBER) return PCRE_ERROR_BADMAGIC; re 85 ext/pcre/pcrelib/pcre_refcount.c if ((re->flags & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE; re 86 ext/pcre/pcrelib/pcre_refcount.c re->ref_count = (-adjust > re->ref_count)? 0 : re 87 ext/pcre/pcrelib/pcre_refcount.c (adjust + re->ref_count > 65535)? 65535 : re 88 ext/pcre/pcrelib/pcre_refcount.c re->ref_count + adjust; re 89 ext/pcre/pcrelib/pcre_refcount.c return re->ref_count; re 83 ext/pcre/pcrelib/pcre_study.c find_minlength(const REAL_PCRE *re, const pcre_uchar *code, re 138 ext/pcre/pcrelib/pcre_study.c d = find_minlength(re, cc, startcode, options, recurses, countptr); re 393 ext/pcre/pcrelib/pcre_study.c pcre_uchar *slot = (pcre_uchar *)re + re 394 ext/pcre/pcrelib/pcre_study.c re->name_table_offset + GET2(cc, 1) * re->name_entry_size; re 422 ext/pcre/pcrelib/pcre_study.c dd = find_minlength(re, cs, startcode, options, &this_recurse, re 427 ext/pcre/pcrelib/pcre_study.c slot += re->name_entry_size; re 459 ext/pcre/pcrelib/pcre_study.c d = find_minlength(re, cs, startcode, options, &this_recurse, re 522 ext/pcre/pcrelib/pcre_study.c branchlength += find_minlength(re, cs, startcode, options, re 1470 ext/pcre/pcrelib/pcre_study.c const REAL_PCRE *re = (const REAL_PCRE *)external_re; re 1475 ext/pcre/pcrelib/pcre_study.c if (re == NULL || re->magic_number != MAGIC_NUMBER) re 1481 ext/pcre/pcrelib/pcre_study.c if ((re->flags & PCRE_MODE) == 0) re 1499 ext/pcre/pcrelib/pcre_study.c code = (pcre_uchar *)re + re->name_table_offset + re 1500 ext/pcre/pcrelib/pcre_study.c (re->name_count * re->name_entry_size); re 1506 ext/pcre/pcrelib/pcre_study.c if ((re->options & PCRE_ANCHORED) == 0 && re 1507 ext/pcre/pcrelib/pcre_study.c (re->flags & (PCRE_FIRSTSET|PCRE_STARTLINE)) == 0) re 1513 ext/pcre/pcrelib/pcre_study.c tables = re->tables; re 1537 ext/pcre/pcrelib/pcre_study.c rc = set_start_bits(code, start_bits, (re->options & PCRE_UTF8) != 0, re 1549 ext/pcre/pcrelib/pcre_study.c switch(min = find_minlength(re, code, code, re->options, NULL, &count)) re 1630 ext/pcre/pcrelib/pcre_study.c PRIV(jit_compile)(re, extra, JIT_COMPILE); re 1632 ext/pcre/pcrelib/pcre_study.c PRIV(jit_compile)(re, extra, JIT_PARTIAL_SOFT_COMPILE); re 1634 ext/pcre/pcrelib/pcre_study.c PRIV(jit_compile)(re, extra, JIT_PARTIAL_HARD_COMPILE); re 48 ext/pcre/pcrelib/pcredemo.c pcre *re; re 99 ext/pcre/pcrelib/pcredemo.c re = pcre_compile( re 108 ext/pcre/pcrelib/pcredemo.c if (re == NULL) re 122 ext/pcre/pcrelib/pcredemo.c re, /* the compiled pattern */ re 143 ext/pcre/pcrelib/pcredemo.c pcre_free(re); /* Release memory used for the compiled pattern */ re 188 ext/pcre/pcrelib/pcredemo.c re, /* the compiled pattern */ re 202 ext/pcre/pcrelib/pcredemo.c re, /* the compiled pattern */ re 208 ext/pcre/pcrelib/pcredemo.c re, /* the compiled pattern */ re 258 ext/pcre/pcrelib/pcredemo.c pcre_free(re); /* Release the memory used for the compiled pattern */ re 266 ext/pcre/pcrelib/pcredemo.c (void)pcre_fullinfo(re, NULL, PCRE_INFO_OPTIONS, &option_bits); re 314 ext/pcre/pcrelib/pcredemo.c re, /* the compiled pattern */ re 361 ext/pcre/pcrelib/pcredemo.c pcre_free(re); /* Release memory used for the compiled pattern */ re 402 ext/pcre/pcrelib/pcredemo.c pcre_free(re); /* Release memory used for the compiled pattern */ re 98 ext/pcre/php_pcre.c pefree(pce->re, 1); re 199 ext/pcre/php_pcre.c rc = pcre_fullinfo(pce->re, extra, PCRE_INFO_NAMECOUNT, &name_cnt); re 208 ext/pcre/php_pcre.c rc1 = pcre_fullinfo(pce->re, extra, PCRE_INFO_NAMETABLE, &name_table); re 209 ext/pcre/php_pcre.c rc2 = pcre_fullinfo(pce->re, extra, PCRE_INFO_NAMEENTRYSIZE, &name_size); re 256 ext/pcre/php_pcre.c pcre *re = NULL; re 292 ext/pcre/php_pcre.c if (pcre_fullinfo(pce->re, NULL, PCRE_INFO_CAPTURECOUNT, &count) == PCRE_ERROR_BADMAGIC) { re 424 ext/pcre/php_pcre.c re = pcre_compile(pattern, re 430 ext/pcre/php_pcre.c if (re == NULL) { re 442 ext/pcre/php_pcre.c extra = pcre_study(re, soptions, &error); re 466 ext/pcre/php_pcre.c new_entry.re = re; re 512 ext/pcre/php_pcre.c return pce ? pce->re : NULL; re 532 ext/pcre/php_pcre.c return pce ? pce->re : NULL; re 658 ext/pcre/php_pcre.c rc = pcre_fullinfo(pce->re, extra, PCRE_INFO_CAPTURECOUNT, &num_subpats); re 693 ext/pcre/php_pcre.c count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, re 1128 ext/pcre/php_pcre.c rc = pcre_fullinfo(pce->re, extra, PCRE_INFO_CAPTURECOUNT, &num_subpats); re 1159 ext/pcre/php_pcre.c count = pcre_exec(pce->re, extra, subject, subject_len, start_offset, re 1600 ext/pcre/php_pcre.c rc = pcre_fullinfo(pce->re, extra, PCRE_INFO_CAPTURECOUNT, &size_offsets); re 1616 ext/pcre/php_pcre.c count = pcre_exec(pce->re, extra, subject, re 1870 ext/pcre/php_pcre.c rc = pcre_fullinfo(pce->re, extra, PCRE_INFO_CAPTURECOUNT, &size_offsets); re 1894 ext/pcre/php_pcre.c count = pcre_exec(pce->re, extra, Z_STRVAL(subject), re 44 ext/pcre/php_pcre.h pcre *re; re 5700 ext/pgsql/pgsql.c regex_t re; re 5719 ext/pgsql/pgsql.c regerr = regcomp(&re, regex, regopt); re 5722 ext/pgsql/pgsql.c regfree(&re); re 5725 ext/pgsql/pgsql.c subs = (regmatch_t *)ecalloc(sizeof(regmatch_t), re.re_nsub+1); re 5727 ext/pgsql/pgsql.c regerr = regexec(&re, str, re.re_nsub+1, subs, 0); re 5735 ext/pgsql/pgsql.c regfree(&re); re 2073 ext/spl/spl_iterators.c count = pcre_exec(intern->u.regex.pce->re, intern->u.regex.pce->extra, subject, subject_len, 0, 0, NULL, 0); re 375 ext/standard/browscap.c pcre *re; re 396 ext/standard/browscap.c re = pcre_get_compiled_regex(Z_STRVAL_PP(browser_regex), &re_extra, &re_options TSRMLS_CC); re 397 ext/standard/browscap.c if (re == NULL) { re 401 ext/standard/browscap.c if (pcre_exec(re, re_extra, lookup_browser_name, lookup_browser_length, 0, re_options, NULL, 0) == 0) { re 671 ext/zip/php_zip.c pcre *re = NULL; re 675 ext/zip/php_zip.c re = pcre_get_compiled_regex(regexp, &pcre_extra, &preg_options TSRMLS_CC); re 676 ext/zip/php_zip.c if (!re) { re 718 ext/zip/php_zip.c matches = pcre_exec(re, NULL, namelist[i], strlen(namelist[i]), 0, 0, ovector, 3);