Lines Matching refs:regex
130 zend_string *regex; member
132 } regex; member
1355 zend_string *regex; in spl_dual_it_construct() local
1358 intern->u.regex.flags = 0; in spl_dual_it_construct()
1359 intern->u.regex.preg_flags = 0; in spl_dual_it_construct()
1360 …(ZEND_NUM_ARGS(), "OS|lll", &zobject, ce_inner, ®ex, &mode, &intern->u.regex.flags, &intern->u.… in spl_dual_it_construct()
1371 intern->u.regex.pce = pcre_get_compiled_regex_cache(regex); in spl_dual_it_construct()
1374 if (intern->u.regex.pce == NULL) { in spl_dual_it_construct()
1378 intern->u.regex.mode = mode; in spl_dual_it_construct()
1379 intern->u.regex.regex = zend_string_copy(regex); in spl_dual_it_construct()
1380 php_pcre_pce_incref(intern->u.regex.pce); in spl_dual_it_construct()
1778 if (intern->u.regex.flags & REGIT_USE_KEY) { in PHP_METHOD()
1792 switch (intern->u.regex.mode) in PHP_METHOD()
1796 re = php_pcre_pce_re(intern->u.regex.pce); in PHP_METHOD()
1810 php_pcre_match_impl(intern->u.regex.pce, subject, &zcount, in PHP_METHOD()
1811 …&intern->current.data, intern->u.regex.mode == REGIT_MODE_ALL_MATCHES, intern->u.regex.preg_flags,… in PHP_METHOD()
1818 …php_pcre_split_impl(intern->u.regex.pce, subject, &intern->current.data, -1, intern->u.regex.preg_… in PHP_METHOD()
1830 …result = php_pcre_replace_impl(intern->u.regex.pce, subject, ZSTR_VAL(subject), ZSTR_LEN(subject),… in PHP_METHOD()
1838 if (intern->u.regex.flags & REGIT_USE_KEY) { in PHP_METHOD()
1851 if (intern->u.regex.flags & REGIT_INVERTED) { in PHP_METHOD()
1866 RETURN_STR_COPY(intern->u.regex.regex); in PHP_METHOD()
1878 RETURN_LONG(intern->u.regex.mode); in PHP_METHOD()
1899 intern->u.regex.mode = mode; in PHP_METHOD()
1911 RETURN_LONG(intern->u.regex.flags); in PHP_METHOD()
1926 intern->u.regex.flags = flags; in PHP_METHOD()
1938 RETURN_LONG(intern->u.regex.preg_flags); in PHP_METHOD()
1953 intern->u.regex.preg_flags = preg_flags; in PHP_METHOD()
1980 ZVAL_STR_COPY(&args[1], intern->u.regex.regex); in PHP_METHOD()
1981 ZVAL_LONG(&args[2], intern->u.regex.mode); in PHP_METHOD()
1982 ZVAL_LONG(&args[3], intern->u.regex.flags); in PHP_METHOD()
1983 ZVAL_LONG(&args[4], intern->u.regex.preg_flags); in PHP_METHOD()
2038 if (object->u.regex.pce) { in spl_dual_it_free_storage()
2039 php_pcre_pce_decref(object->u.regex.pce); in spl_dual_it_free_storage()
2041 if (object->u.regex.regex) { in spl_dual_it_free_storage()
2042 zend_string_release_ex(object->u.regex.regex, 0); in spl_dual_it_free_storage()