Lines Matching refs:regex

301 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex)  in pcre_get_compiled_regex_cache()  argument
325 key = zend_string_alloc(ZSTR_LEN(regex) + ZSTR_LEN(BG(locale_string)) + 1, 0); in pcre_get_compiled_regex_cache()
327 memcpy(ZSTR_VAL(key) + ZSTR_LEN(BG(locale_string)), ZSTR_VAL(regex), ZSTR_LEN(regex) + 1); in pcre_get_compiled_regex_cache()
331 key = regex; in pcre_get_compiled_regex_cache()
339 if (key != regex) { in pcre_get_compiled_regex_cache()
346 p = ZSTR_VAL(regex); in pcre_get_compiled_regex_cache()
353 if (key != regex) { in pcre_get_compiled_regex_cache()
358 p < ZSTR_VAL(regex) + ZSTR_LEN(regex) ? "Null byte in regex" : "Empty regular expression"); in pcre_get_compiled_regex_cache()
368 if (key != regex) { in pcre_get_compiled_regex_cache()
413 if (key != regex) { in pcre_get_compiled_regex_cache()
417 if (pp < ZSTR_VAL(regex) + ZSTR_LEN(regex)) { in pcre_get_compiled_regex_cache()
436 while (pp < ZSTR_VAL(regex) + ZSTR_LEN(regex)) { in pcre_get_compiled_regex_cache()
476 if (key != regex) { in pcre_get_compiled_regex_cache()
485 if (key != regex) { in pcre_get_compiled_regex_cache()
499 if (key != regex) { in pcre_get_compiled_regex_cache()
568 if (key != regex) { in pcre_get_compiled_regex_cache()
580 if (key != regex) { in pcre_get_compiled_regex_cache()
601 if (key != regex) { in pcre_get_compiled_regex_cache()
615 PHPAPI pcre* pcre_get_compiled_regex(zend_string *regex, pcre_extra **extra, int *preg_options) in pcre_get_compiled_regex() argument
617 pcre_cache_entry * pce = pcre_get_compiled_regex_cache(regex); in pcre_get_compiled_regex()
632 PHPAPI pcre* pcre_get_compiled_regex_ex(zend_string *regex, pcre_extra **extra, int *preg_options, … in pcre_get_compiled_regex_ex() argument
634 pcre_cache_entry * pce = pcre_get_compiled_regex_cache(regex); in pcre_get_compiled_regex_ex()
674 zend_string *regex; /* Regular expression */ in php_do_pcre_match() local
682 Z_PARAM_STR(regex) in php_do_pcre_match()
696 if ((pce = pcre_get_compiled_regex_cache(regex)) == NULL) { in php_do_pcre_match()
1130 PHPAPI zend_string *php_pcre_replace(zend_string *regex, in php_pcre_replace() argument
1140 if ((pce = pcre_get_compiled_regex_cache(regex)) == NULL) { in php_pcre_replace()
1427 static zend_string *php_replace_in_subject(zval *regex, zval *replace, zval *subject, int limit, in… in php_replace_in_subject() argument
1445 if (Z_TYPE_P(regex) == IS_ARRAY) { in php_replace_in_subject()
1450 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(regex), regex_entry) { in php_replace_in_subject()
1503 result = php_pcre_replace(Z_STR_P(regex), in php_replace_in_subject()
1519 static int preg_replace_impl(zval *return_value, zval *regex, zval *replace, zval *subject, zend_lo… in preg_replace_impl() argument
1531 if (Z_TYPE_P(regex) != IS_ARRAY) { in preg_replace_impl()
1532 convert_to_string_ex(regex); in preg_replace_impl()
1543 …if ((result = php_replace_in_subject(regex, replace, subject_entry, limit_val, is_callable_replace… in preg_replace_impl()
1562 …if ((result = php_replace_in_subject(regex, replace, subject, limit_val, is_callable_replace, &rep… in preg_replace_impl()
1582 zval *regex, *replace, *subject, *zcount = NULL; in PHP_FUNCTION() local
1588 Z_PARAM_ZVAL(regex) in PHP_FUNCTION()
1596 if (Z_TYPE_P(replace) == IS_ARRAY && Z_TYPE_P(regex) != IS_ARRAY) { in PHP_FUNCTION()
1601 replace_count = preg_replace_impl(return_value, regex, replace, subject, limit, 0, 0); in PHP_FUNCTION()
1613 zval *regex, *replace, *subject, *zcount = NULL; in PHP_FUNCTION() local
1620 Z_PARAM_ZVAL(regex) in PHP_FUNCTION()
1636 replace_count = preg_replace_impl(return_value, regex, replace, subject, limit, 1, 0); in PHP_FUNCTION()
1648 zval regex, zv, *replace, *subject, *pattern, *zcount = NULL; in PHP_FUNCTION() local
1665 ZVAL_STR_COPY(&regex, str_idx); in PHP_FUNCTION()
1675 zval_ptr_dtor(&regex); in PHP_FUNCTION()
1683 replace_count += preg_replace_impl(&zv, &regex, replace, subject, limit, 1, 0); in PHP_FUNCTION()
1685 replace_count += preg_replace_impl(&zv, &regex, replace, return_value, limit, 1, 0); in PHP_FUNCTION()
1689 zval_ptr_dtor(&regex); in PHP_FUNCTION()
1710 zval *regex, *replace, *subject, *zcount = NULL; in PHP_FUNCTION() local
1716 Z_PARAM_ZVAL(regex) in PHP_FUNCTION()
1724 if (Z_TYPE_P(replace) == IS_ARRAY && Z_TYPE_P(regex) != IS_ARRAY) { in PHP_FUNCTION()
1729 replace_count = preg_replace_impl(return_value, regex, replace, subject, limit, 0, 1); in PHP_FUNCTION()
1741 zend_string *regex; /* Regular expression */ in PHP_FUNCTION() local
1749 Z_PARAM_STR(regex) in PHP_FUNCTION()
1762 if ((pce = pcre_get_compiled_regex_cache(regex)) == NULL) { in PHP_FUNCTION()
2023 zend_string *regex; /* Regular expression */ in PHP_FUNCTION() local
2030 Z_PARAM_STR(regex) in PHP_FUNCTION()
2037 if ((pce = pcre_get_compiled_regex_cache(regex)) == NULL) { in PHP_FUNCTION()
2162 ZEND_ARG_INFO(0, regex)
2170 ZEND_ARG_INFO(0, regex)
2197 ZEND_ARG_INFO(0, regex)