Lines Matching refs:regex

249 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(char *regex, int regex_len TSRMLS_DC)  in pcre_get_compiled_regex_cache()  argument
282 if (zend_hash_find(&PCRE_G(pcre_cache), regex, regex_len+1, (void **)&pce) == SUCCESS) { in pcre_get_compiled_regex_cache()
300 p = regex; in pcre_get_compiled_regex_cache()
307 p < regex + regex_len ? "Null byte in regex" : "Empty regular expression"); in pcre_get_compiled_regex_cache()
354 if (pp < regex + regex_len) { in pcre_get_compiled_regex_cache()
372 while (pp < regex + regex_len) { in pcre_get_compiled_regex_cache()
479 if (IS_INTERNED(regex)) { in pcre_get_compiled_regex_cache()
480 regex = tmp = estrndup(regex, regex_len); in pcre_get_compiled_regex_cache()
483 zend_hash_update(&PCRE_G(pcre_cache), regex, regex_len+1, (void *)&new_entry, in pcre_get_compiled_regex_cache()
496 PHPAPI pcre* pcre_get_compiled_regex(char *regex, pcre_extra **extra, int *preg_options TSRMLS_DC) in pcre_get_compiled_regex() argument
498 pcre_cache_entry * pce = pcre_get_compiled_regex_cache(regex, strlen(regex) TSRMLS_CC); in pcre_get_compiled_regex()
513 PHPAPI pcre* pcre_get_compiled_regex_ex(char *regex, pcre_extra **extra, int *preg_options, int *co… in pcre_get_compiled_regex_ex() argument
515 pcre_cache_entry * pce = pcre_get_compiled_regex_cache(regex, strlen(regex) TSRMLS_CC); in pcre_get_compiled_regex_ex()
555 char *regex; /* Regular expression */ in php_do_pcre_match() local
564 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|zll", &regex, &regex_len, in php_do_pcre_match()
570 if ((pce = pcre_get_compiled_regex_cache(regex, regex_len TSRMLS_CC)) == NULL) { in php_do_pcre_match()
1010 PHPAPI char *php_pcre_replace(char *regex, int regex_len, in php_pcre_replace() argument
1019 if ((pce = pcre_get_compiled_regex_cache(regex, regex_len TSRMLS_CC)) == NULL) { in php_pcre_replace()
1277 static char *php_replace_in_subject(zval *regex, zval *replace, zval **subject, int *result_len, in… in php_replace_in_subject() argument
1293 if (Z_TYPE_P(regex) == IS_ARRAY) { in php_replace_in_subject()
1299 zend_hash_internal_pointer_reset(Z_ARRVAL_P(regex)); in php_replace_in_subject()
1306 while (zend_hash_get_current_data(Z_ARRVAL_P(regex), (void **)&regex_entry) == SUCCESS) { in php_replace_in_subject()
1344 zend_hash_move_forward(Z_ARRVAL_P(regex)); in php_replace_in_subject()
1349 result = php_pcre_replace(Z_STRVAL_P(regex), in php_replace_in_subject()
1350 Z_STRLEN_P(regex), in php_replace_in_subject()
1367 zval **regex, in preg_replace_impl() local
1382 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZZ|lZ", &regex, &replace, &subject, &limit,… in preg_replace_impl()
1386 if (!is_callable_replace && Z_TYPE_PP(replace) == IS_ARRAY && Z_TYPE_PP(regex) != IS_ARRAY) { in preg_replace_impl()
1405 SEPARATE_ZVAL(regex); in preg_replace_impl()
1412 if (Z_TYPE_PP(regex) != IS_ARRAY) in preg_replace_impl()
1413 convert_to_string_ex(regex); in preg_replace_impl()
1425 …if ((result = php_replace_in_subject(*regex, *replace, subject_entry, &result_len, limit_val, is_c… in preg_replace_impl()
1447 …if ((result = php_replace_in_subject(*regex, *replace, subject, &result_len, limit_val, is_callabl… in preg_replace_impl()
1491 char *regex; /* Regular expression */ in PHP_FUNCTION() local
1500 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|ll", &regex, &regex_len, in PHP_FUNCTION()
1506 if ((pce = pcre_get_compiled_regex_cache(regex, regex_len TSRMLS_CC)) == NULL) { in PHP_FUNCTION()
1776 char *regex; /* Regular expression */ in PHP_FUNCTION() local
1783 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sa|l", &regex, &regex_len, in PHP_FUNCTION()
1789 if ((pce = pcre_get_compiled_regex_cache(regex, regex_len TSRMLS_CC)) == NULL) { in PHP_FUNCTION()
1924 ZEND_ARG_INFO(0, regex)
1932 ZEND_ARG_INFO(0, regex)
1952 ZEND_ARG_INFO(0, regex)