Lines Matching refs:regex

576 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache_ex(zend_string *regex, int locale_aware)  in pcre_get_compiled_regex_cache_ex()  argument
604 key = zend_string_alloc(ZSTR_LEN(regex) + ZSTR_LEN(BG(locale_string)) + 1, 0); in pcre_get_compiled_regex_cache_ex()
606 memcpy(ZSTR_VAL(key) + ZSTR_LEN(BG(locale_string)), ZSTR_VAL(regex), ZSTR_LEN(regex) + 1); in pcre_get_compiled_regex_cache_ex()
608 key = regex; in pcre_get_compiled_regex_cache_ex()
615 if (key != regex) { in pcre_get_compiled_regex_cache_ex()
621 p = ZSTR_VAL(regex); in pcre_get_compiled_regex_cache_ex()
627 if (key != regex) { in pcre_get_compiled_regex_cache_ex()
631 p < ZSTR_VAL(regex) + ZSTR_LEN(regex) ? "Null byte in regex" : "Empty regular expression"); in pcre_get_compiled_regex_cache_ex()
640 if (key != regex) { in pcre_get_compiled_regex_cache_ex()
683 if (key != regex) { in pcre_get_compiled_regex_cache_ex()
686 if (pp < ZSTR_VAL(regex) + ZSTR_LEN(regex)) { in pcre_get_compiled_regex_cache_ex()
706 while (pp < ZSTR_VAL(regex) + ZSTR_LEN(regex)) { in pcre_get_compiled_regex_cache_ex()
746 if (key != regex) { in pcre_get_compiled_regex_cache_ex()
757 if (key != regex) { in pcre_get_compiled_regex_cache_ex()
763 if (key != regex) { in pcre_get_compiled_regex_cache_ex()
797 if (key != regex) { in pcre_get_compiled_regex_cache_ex()
850 if (key != regex) { in pcre_get_compiled_regex_cache_ex()
860 if (key != regex) { in pcre_get_compiled_regex_cache_ex()
886 if (key != regex) { in pcre_get_compiled_regex_cache_ex()
896 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex) in pcre_get_compiled_regex_cache() argument
898 return pcre_get_compiled_regex_cache_ex(regex, 1); in pcre_get_compiled_regex_cache()
904 PHPAPI pcre2_code *pcre_get_compiled_regex(zend_string *regex, uint32_t *capture_count) in pcre_get_compiled_regex() argument
906 pcre_cache_entry * pce = pcre_get_compiled_regex_cache(regex); in pcre_get_compiled_regex()
918 PHPAPI pcre2_code* pcre_get_compiled_regex_ex(zend_string *regex, uint32_t *capture_count, uint32_t… in pcre_get_compiled_regex_ex() argument
920 pcre_cache_entry * pce = pcre_get_compiled_regex_cache(regex); in pcre_get_compiled_regex_ex()
1127 zend_string *regex; /* Regular expression */ in php_do_pcre_match() local
1135 Z_PARAM_STR(regex) in php_do_pcre_match()
1144 if ((pce = pcre_get_compiled_regex_cache(regex)) == NULL) { in php_do_pcre_match()
1587 PHPAPI zend_string *php_pcre_replace(zend_string *regex, in php_pcre_replace() argument
1602 if ((pce = pcre_get_compiled_regex_cache(regex)) == NULL) { in php_pcre_replace()
2069 static zend_always_inline zend_string *php_pcre_replace_func(zend_string *regex, in php_pcre_replace_func() argument
2078 if ((pce = pcre_get_compiled_regex_cache(regex)) == NULL) { in php_pcre_replace_func()
2093 static zend_string *php_pcre_replace_array(HashTable *regex, zval *replace, zend_string *subject_st… in php_pcre_replace_array() argument
2104 ZEND_HASH_FOREACH_VAL(regex, regex_entry) { in php_pcre_replace_array()
2147 ZEND_HASH_FOREACH_VAL(regex, regex_entry) { in php_pcre_replace_array()
2177 static zend_always_inline zend_string *php_replace_in_subject(zval *regex, zval *replace, zval *sub… in php_replace_in_subject() argument
2182 if (Z_TYPE_P(regex) != IS_ARRAY) { in php_replace_in_subject()
2183 result = php_pcre_replace(Z_STR_P(regex), in php_replace_in_subject()
2192 result = php_pcre_replace_array(Z_ARRVAL_P(regex), in php_replace_in_subject()
2204 static zend_string *php_replace_in_subject_func(zval *regex, zend_fcall_info *fci, zend_fcall_info_… in php_replace_in_subject_func() argument
2209 if (Z_TYPE_P(regex) != IS_ARRAY) { in php_replace_in_subject_func()
2211 Z_STR_P(regex), subject_str, fci, fcc, limit, replace_count, flags); in php_replace_in_subject_func()
2220 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(regex), regex_entry) { in php_replace_in_subject_func()
2244 static size_t preg_replace_func_impl(zval *return_value, zval *regex, zend_fcall_info *fci, zend_fc… in preg_replace_func_impl() argument
2249 if (Z_TYPE_P(regex) != IS_ARRAY) { in preg_replace_func_impl()
2250 convert_to_string_ex(regex); in preg_replace_func_impl()
2255 regex, fci, fcc, subject, limit_val, &replace_count, flags); in preg_replace_func_impl()
2273 regex, fci, fcc, subject_entry, limit_val, &replace_count, flags); in preg_replace_func_impl()
2294 zval *regex, *replace, *subject, *zcount = NULL; in preg_replace_common() local
2302 Z_PARAM_ZVAL(regex) in preg_replace_common()
2312 if (Z_TYPE_P(regex) != IS_ARRAY) { in preg_replace_common()
2313 convert_to_string_ex(regex); in preg_replace_common()
2316 if (Z_TYPE_P(regex) != IS_ARRAY) { in preg_replace_common()
2324 result = php_replace_in_subject(regex, in preg_replace_common()
2351 result = php_replace_in_subject(regex, in preg_replace_common()
2390 zval *regex, *replace, *subject, *zcount = NULL; in PHP_FUNCTION() local
2398 Z_PARAM_ZVAL(regex) in PHP_FUNCTION()
2419 replace_count = preg_replace_func_impl(return_value, regex, &fci, &fcc, subject, limit, flags); in PHP_FUNCTION()
2430 zval regex, zv, *replace, *subject, *pattern, *zcount = NULL; in PHP_FUNCTION() local
2452 ZVAL_STR_COPY(&regex, str_idx); in PHP_FUNCTION()
2463 zval_ptr_dtor(&regex); in PHP_FUNCTION()
2471 replace_count += preg_replace_func_impl(&zv, &regex, &fci, &fcc, subject, limit, flags); in PHP_FUNCTION()
2478 zval_ptr_dtor(&regex); in PHP_FUNCTION()
2506 zend_string *regex; /* Regular expression */ in PHP_FUNCTION() local
2514 Z_PARAM_STR(regex) in PHP_FUNCTION()
2522 if ((pce = pcre_get_compiled_regex_cache(regex)) == NULL) { in PHP_FUNCTION()
2868 zend_string *regex; /* Regular expression */ in PHP_FUNCTION() local
2875 Z_PARAM_STR(regex) in PHP_FUNCTION()
2882 if ((pce = pcre_get_compiled_regex_cache(regex)) == NULL) { in PHP_FUNCTION()
3011 ZEND_ARG_INFO(0, regex)
3019 ZEND_ARG_INFO(0, regex)
3048 ZEND_ARG_INFO(0, regex)