Lines Matching refs:pattern
31 ZEND_ARG_INFO(0, pattern)
37 ZEND_ARG_INFO(0, pattern)
43 ZEND_ARG_INFO(0, pattern)
139 static int _php_regcomp(regex_t *preg, const char *pattern, int cflags TSRMLS_DC) in _php_regcomp() argument
142 int patlen = strlen(pattern); in _php_regcomp()
156 if(zend_hash_find(&EREG(ht_rc), (char *) pattern, patlen+1, (void **) &rc) == SUCCESS in _php_regcomp()
172 r = regcomp(preg, pattern, cflags); in _php_regcomp()
185 zend_hash_update(&EREG(ht_rc), (char *) pattern, patlen+1, in _php_regcomp()
191 r = regcomp(preg, pattern, cflags);
198 zend_hash_update(&EREG(ht_rc), (char *) pattern, patlen+1,
403 PHP_EREG_API char *php_ereg_replace(const char *pattern, const char *replace, const char *string, i… in php_ereg_replace() argument
425 err = regcomp(&re, pattern, copts); in php_ereg_replace()
554 char *pattern, *arg_string; in php_do_ereg_replace() local
566 pattern = estrndup(Z_STRVAL_PP(arg_pattern), Z_STRLEN_PP(arg_pattern)); in php_do_ereg_replace()
568 pattern = STR_EMPTY_ALLOC(); in php_do_ereg_replace()
572 pattern = emalloc(2); in php_do_ereg_replace()
573 pattern[0] = (char) Z_LVAL_PP(arg_pattern); in php_do_ereg_replace()
574 pattern[1] = '\0'; in php_do_ereg_replace()
597 ret = php_ereg_replace(pattern, replace, string, icase, 1 TSRMLS_CC); in php_do_ereg_replace()
607 STR_FREE(pattern); in php_do_ereg_replace()