Home
last modified time | relevance | path

Searched refs:match_data (Results 1 – 17 of 17) sorted by relevance

/PHP-7.4/ext/pcre/pcre2lib/
H A Dpcre2_match_data.c94 pcre2_match_data_free(pcre2_match_data *match_data) in pcre2_match_data_free() argument
96 if (match_data != NULL) in pcre2_match_data_free()
99 match_data->memctl.free((void *)match_data->subject, in pcre2_match_data_free()
100 match_data->memctl.memory_data); in pcre2_match_data_free()
101 match_data->memctl.free(match_data, match_data->memctl.memory_data); in pcre2_match_data_free()
112 pcre2_get_mark(pcre2_match_data *match_data) in pcre2_get_mark() argument
114 return match_data->mark; in pcre2_get_mark()
126 return match_data->ovector; in pcre2_get_ovector_pointer()
138 return match_data->oveccount; in pcre2_get_ovector_count()
148 pcre2_get_startchar(pcre2_match_data *match_data) in pcre2_get_startchar() argument
[all …]
H A Dpcre2_substring.c87 if (n < match_data->oveccount) in pcre2_substring_copy_byname()
89 if (match_data->ovector[n*2] != PCRE2_UNSET) in pcre2_substring_copy_byname()
129 memcpy(buffer, match_data->subject + match_data->ovector[stringnumber*2], in pcre2_substring_copy_bynumber()
175 if (n < match_data->oveccount) in pcre2_substring_get_byname()
221 memcpy(yield, match_data->subject + match_data->ovector[stringnumber*2], in pcre2_substring_get_bynumber()
282 if (n < match_data->oveccount) in pcre2_substring_length_byname()
319 int count = match_data->rc; in pcre2_substring_length_bynumber()
331 if (stringnumber >= match_data->oveccount) in pcre2_substring_length_bynumber()
342 left = match_data->ovector[stringnumber*2]; in pcre2_substring_length_bynumber()
343 right = match_data->ovector[stringnumber*2+1]; in pcre2_substring_length_bynumber()
[all …]
H A Dpcre2_jit_match.c96 (void)match_data; in pcre2_jit_match()
105 uint32_t oveccount = match_data->oveccount; in pcre2_jit_match()
127 arguments.match_data = match_data; in pcre2_jit_match()
172 match_data->code = re; in pcre2_jit_match()
174 match_data->rc = rc; in pcre2_jit_match()
175 match_data->startchar = arguments.startchar_ptr - subject; in pcre2_jit_match()
176 match_data->leftchar = 0; in pcre2_jit_match()
177 match_data->rightchar = 0; in pcre2_jit_match()
178 match_data->mark = arguments.mark_ptr; in pcre2_jit_match()
179 match_data->matchedby = PCRE2_MATCHEDBY_JIT; in pcre2_jit_match()
[all …]
H A Dpcre2_substitute.c276 if (match_data == NULL) in pcre2_substitute()
283 match_data = internal_match_data = in pcre2_substitute()
294 code->top_bracket + 1 : match_data->oveccount; in pcre2_substitute()
300 match_data = internal_match_data; in pcre2_substitute()
305 ovector = pcre2_get_ovector_pointer(match_data); in pcre2_substitute()
306 ovector_count = pcre2_get_ovector_count(match_data); in pcre2_substitute()
329 match_data->leftchar = 0; in pcre2_substitute()
344 match_data->leftchar = 0; in pcre2_substitute()
364 rc = match_data->rc; in pcre2_substitute()
368 match_data, mcontext); in pcre2_substitute()
[all …]
H A Dpcre2_match.c6256 match_data->memctl.free((void *)match_data->subject, in pcre2_match()
6260 match_data->subject = NULL; in pcre2_match()
6264 match_data->startchar = 0; in pcre2_match()
6346 match_data, mcontext); in pcre2_match()
6352 match_data->subject = match_data->memctl.malloc(length, in pcre2_match()
6477 if (!allow_invalid || match_data->rc > 0) return match_data->rc; in pcre2_match()
7242 match_data->code = re; in pcre2_match()
7253 match_data->rc = ((int)mb->end_offset_top >= 2 * match_data->oveccount)? in pcre2_match()
7262 match_data->subject = match_data->memctl.malloc(length, in pcre2_match()
7269 return match_data->rc; in pcre2_match()
[all …]
H A Dpcre2_dfa_match.c3510 match_data->rc = PRIV(valid_utf)(check_subject, in pcre2_dfa_match()
3512 if (match_data->rc != 0) in pcre2_dfa_match()
3515 return match_data->rc; in pcre2_dfa_match()
3571 match_data->memctl.free((void *)match_data->subject, in pcre2_dfa_match()
3572 match_data->memctl.memory_data); in pcre2_dfa_match()
3573 match_data->flags &= ~PCRE2_MD_COPIED_SUBJECT; in pcre2_dfa_match()
3578 match_data->code = re; in pcre2_dfa_match()
3580 match_data->mark = NULL; in pcre2_dfa_match()
3922 match_data->rc = rc; in pcre2_dfa_match()
3927 match_data->subject = match_data->memctl.malloc(length, in pcre2_dfa_match()
[all …]
H A Dpcre2_jit_compile.c183 pcre2_match_data *match_data; member
3303 OP2(SLJIT_ADD, SLJIT_R2, 0, SLJIT_MEM1(SLJIT_R0), SLJIT_OFFSETOF(jit_arguments, match_data), in copy_ovector()
3309 OP1(SLJIT_MOV, SLJIT_R2, 0, SLJIT_MEM1(ARGUMENTS), SLJIT_OFFSETOF(jit_arguments, match_data)); in copy_ovector()
3399 OP1(SLJIT_MOV, SLJIT_R1, 0, SLJIT_MEM1(arguments_reg), SLJIT_OFFSETOF(jit_arguments, match_data)); in return_with_partial_match()
/PHP-7.4/ext/pcre/
H A Dphp_pcre.c1273 match_data = mdata; in php_pcre_match_impl()
1276 if (!match_data) { in php_pcre_match_impl()
1449 if (match_data != mdata) { in php_pcre_match_impl()
1650 match_data = mdata; in php_pcre_replace_impl()
1653 if (!match_data) { in php_pcre_replace_impl()
1902 match_data = mdata; in php_pcre_replace_func_impl()
1905 if (!match_data) { in php_pcre_replace_func_impl()
2574 match_data = mdata; in php_pcre_split_impl()
2577 if (!match_data) { in php_pcre_split_impl()
2914 match_data = mdata; in php_pcre_grep_impl()
[all …]
/PHP-7.4/ext/opcache/
H A Dzend_accelerator_blacklist.c356 pcre2_match_data *match_data = php_pcre_create_match_data(0, regexp_list_it->re); local
357 if (!match_data) {
361 … pcre2_match(regexp_list_it->re, (PCRE2_SPTR)verify_path, verify_path_len, 0, 0, match_data, mctx);
364 php_pcre_free_match_data(match_data);
367 php_pcre_free_match_data(match_data);
/PHP-7.4/ext/filter/
H A Dlogical_filters.c469 pcre2_match_data *match_data = NULL; in php_filter_validate_regexp() local
485 match_data = php_pcre_create_match_data(capture_count, re); in php_filter_validate_regexp()
486 if (!match_data) { in php_filter_validate_regexp()
489 …rc = pcre2_match(re, (PCRE2_SPTR)Z_STRVAL_P(value), Z_STRLEN_P(value), 0, 0, match_data, php_pcre_… in php_filter_validate_regexp()
490 php_pcre_free_match_data(match_data); in php_filter_validate_regexp()
674 pcre2_match_data *match_data = NULL; in php_filter_validate_email() local
702 match_data = php_pcre_create_match_data(capture_count, re); in php_filter_validate_email()
703 if (!match_data) { in php_filter_validate_email()
706 …rc = pcre2_match(re, (PCRE2_SPTR)Z_STRVAL_P(value), Z_STRLEN_P(value), 0, 0, match_data, php_pcre_… in php_filter_validate_email()
707 php_pcre_free_match_data(match_data); in php_filter_validate_email()
/PHP-7.4/ext/standard/
H A Dbrowscap.c557 pcre2_match_data *match_data; in browser_reg_compare() local
608 match_data = php_pcre_create_match_data(capture_count, re); in browser_reg_compare()
609 if (!match_data) { in browser_reg_compare()
614 …rc = pcre2_match(re, (PCRE2_SPTR)ZSTR_VAL(agent_name), ZSTR_LEN(agent_name), 0, 0, match_data, php… in browser_reg_compare()
615 php_pcre_free_match_data(match_data); in browser_reg_compare()
/PHP-7.4/ext/zip/
H A Dphp_zip.c652 pcre2_match_data *match_data = NULL; in php_zip_pcre() local
683 match_data = php_pcre_create_match_data(capture_count, re); in php_zip_pcre()
684 if (!match_data) { in php_zip_pcre()
689 …rc = pcre2_match(re, (PCRE2_SPTR)ZSTR_VAL(namelist[i]), ZSTR_LEN(namelist[i]), 0, 0, match_data, m… in php_zip_pcre()
690 php_pcre_free_match_data(match_data); in php_zip_pcre()
/PHP-7.4/ext/fileinfo/libmagic/
H A Dsoftmagic.c484 pcre2_match_data *match_data = php_pcre_create_match_data(0, re); in check_fmt() local
485 if (match_data) { in check_fmt()
486 rv = pcre2_match(re, (PCRE2_SPTR)fmt, strlen(fmt), 0, 0, match_data, php_pcre_mctx()) > 0; in check_fmt()
487 php_pcre_free_match_data(match_data); in check_fmt()
/PHP-7.4/ext/spl/
H A Dspl_iterators.c2005 pcre2_match_data *match_data; in SPL_METHOD() local
2038 match_data = php_pcre_create_match_data(0, re); in SPL_METHOD()
2039 if (!match_data) { in SPL_METHOD()
2042 …rc = pcre2_match(re, (PCRE2_SPTR)ZSTR_VAL(subject), ZSTR_LEN(subject), 0, 0, match_data, php_pcre_… in SPL_METHOD()
2044 php_pcre_free_match_data(match_data); in SPL_METHOD()
/PHP-7.4/ext/mbstring/
H A Dmbstring.c1074 pcre2_match_data *match_data = php_pcre_create_match_data(0, opaque); in _php_mb_match_regex() local
1075 if (NULL == match_data) { in _php_mb_match_regex()
1080 res = pcre2_match(opaque, (PCRE2_SPTR)str, str_len, 0, 0, match_data, php_pcre_mctx()) >= 0; in _php_mb_match_regex()
1081 php_pcre_free_match_data(match_data); in _php_mb_match_regex()
/PHP-7.4/ext/pgsql/
H A Dpgsql.c5763 pcre2_match_data *match_data; local
5786 match_data = php_pcre_create_match_data(0, re);
5787 if (NULL == match_data) {
5792 res = pcre2_match(re, (PCRE2_SPTR)str, str_len, 0, 0, match_data, php_pcre_mctx());
5793 php_pcre_free_match_data(match_data);
/PHP-7.4/ext/fileinfo/
H A Dlibmagic.patch3327 + pcre2_match_data *match_data = php_pcre_create_match_data(0, re);
3328 + if (match_data) {
3329 + rv = pcre2_match(re, (PCRE2_SPTR)fmt, strlen(fmt), 0, 0, match_data, php_pcre_mctx()) > 0;
3330 + php_pcre_free_match_data(match_data);

Completed in 142 milliseconds