Searched refs:regex (Results 1 - 15 of 15) sorted by relevance

/PHP_TRUNK/ext/spl/examples/
H A Dkeyfilter.inc25 private $regex;
33 * @param regex Regular expression used as a filter.
35 function __construct(Iterator $it, $regex)
38 $this->regex = $regex;
45 return ereg($this->regex, $this->getInnerIterator()->key());
52 return $this->regex;
H A Dregexfindfile.inc25 * @param $regex perl style regular expression to find files with
27 function __construct($path, $regex)
29 parent::__construct($path, $regex);
/PHP_TRUNK/ext/spl/internal/
H A Drecursiveregexiterator.inc27 * @param regex the regular expression to match
34 function __construct(RecursiveIterator $it, $regex, $mode = 0, $flags = 0, $preg_flags = 0) {
35 parent::__construct($it, $regex, $mode, $flags, $preg_flags);
H A Dregexiterator.inc31 private $regex; /**< the regular expression to match against */
45 * @param regex the regular expression to match
52 function __construct(Iterator $it, $regex, $mode = 0, $flags = 0, $preg_flags = 0) {
54 $this->regex = $regex;
78 return preg_match($this->regex, $subject, $matches, $this->preg_flags);
82 return preg_match($this->regex, $subject, $this->current, $this->preg_flags) > 0;
86 return preg_match_all($this->regex, $subject, $this->current, $this->preg_flags) > 0;
90 preg_split($this->regex, $subject, $this->current, $this->preg_flags) > 1;
94 $result = preg_replace($this->regex,
[all...]
/PHP_TRUNK/
H A Dltmain.sh1520 -export-symbols | -export-symbols-regex)
1732 -precious-files-regex)
3786 $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
3789 $echo "*** using a regex pattern. Last file checked: $potlib"
6871 -export-symbols-regex REGEX
6881 -precious-files-regex REGEX
/PHP_TRUNK/ext/spl/
H A Dspl_iterators.h160 zend_string *regex; member in struct:_spl_dual_it_object::__anon234::__anon238
163 } regex; member in union:_spl_dual_it_object::__anon234
H A Dspl_iterators.c1543 zend_string *regex; local
1546 intern->u.regex.use_flags = ZEND_NUM_ARGS() >= 5;
1547 intern->u.regex.flags = 0;
1548 intern->u.regex.preg_flags = 0;
1549 if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "OS|lll", &zobject, ce_inner, &regex, &mode, &intern->u.regex.flags, &intern->u.regex.preg_flags) == FAILURE) {
1556 intern->u.regex.mode = mode;
1557 intern->u.regex.regex
[all...]
/PHP_TRUNK/ext/phar/phar/
H A Dpharcommand.inc98 'typ' => 'regex',
100 'inf' => '<regex> Specifies a regular expression for input files.'
135 'typ' => 'regex',
137 'inf' => '<regex> Regular expression for input files to exclude.'
567 $regex = $this->args['i']['val'];
583 $this->phar_add($phar, $level, $input, $regex, $invregex, $stub, NULL, isset($loader));
586 $this->phar_add($phar, $level, $i, $regex, $invregex, $stub, NULL, isset($loader));
623 * @param string $regex The regex used in RegexIterator.
629 static function phar_add(Phar $phar, $level, $input, $regex,
[all...]
/PHP_TRUNK/ext/imap/
H A Dphp_imap.c1315 zend_string* regex; local
1316 pcre_cache_entry *pce; /* Compiled regex */
1326 regex = zend_string_init("/[0-3][0-9]-((Jan)|(Feb)|(Mar)|(Apr)|(May)|(Jun)|(Jul)|(Aug)|(Sep)|(Oct)|(Nov)|(Dec))-[0-9]{4} [0-2][0-9]:[0-5][0-9]:[0-5][0-9] [+-][0-9]{4}/", sizeof("/[0-3][0-9]-((Jan)|(Feb)|(Mar)|(Apr)|(May)|(Jun)|(Jul)|(Aug)|(Sep)|(Oct)|(Nov)|(Dec))-[0-9]{4} [0-2][0-9]:[0-5][0-9]:[0-5][0-9] [+-][0-9]{4}/") - 1, 0);
1330 if ((pce = pcre_get_compiled_regex_cache(regex))== NULL) {
1331 zend_string_free(regex);
1335 zend_string_free(regex);
1345 zend_string_free(regex);
/PHP_TRUNK/ext/pcre/
H A Dphp_pcre.h36 PHPAPI zend_string *php_pcre_replace(zend_string *regex, zend_string *subject_str, char *subject, int subject_len, zval *replace_val, int is_callable_replace, int limit, int *replace_count);
37 PHPAPI pcre* pcre_get_compiled_regex(zend_string *regex, pcre_extra **extra, int *options);
38 PHPAPI pcre* pcre_get_compiled_regex_ex(zend_string *regex, pcre_extra **extra, int *preg_options, int *coptions);
60 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex);
H A Dphp_pcre.c270 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex) argument
290 /* Try to lookup the cached regex entry, and if successful, just pass
292 pce = zend_hash_find_ptr(&PCRE_G(pcre_cache), regex);
312 p = ZSTR_VAL(regex);
319 p < ZSTR_VAL(regex) + ZSTR_LEN(regex) ? "Null byte in regex" : "Empty regular expression");
366 if (pp < ZSTR_VAL(regex) + ZSTR_LEN(regex)) {
367 php_error_docref(NULL,E_WARNING, "Null byte in regex");
534 pcre_get_compiled_regex(zend_string *regex, pcre_extra **extra, int *preg_options) argument
551 pcre_get_compiled_regex_ex(zend_string *regex, pcre_extra **extra, int *preg_options, int *compile_options) argument
593 zend_string *regex; /* Regular expression */ local
1056 php_pcre_replace(zend_string *regex, zend_string *subject_str, char *subject, int subject_len, zval *replace_val, int is_callable_replace, int limit, int *replace_count) argument
1350 php_replace_in_subject(zval *regex, zval *replace, zval *subject, int limit, int is_callable_replace, int *replace_count) argument
1440 preg_replace_impl(zval *return_value, zval *regex, zval *replace, zval *subject, zend_long limit_val, int is_callable_replace, int is_filter) argument
1502 zval *regex, *replace, *subject, *zcount = NULL; local
1539 zval *regex, *replace, *subject, *zcount = NULL; local
1580 zval regex, zv, *replace, *subject, *pattern, *zcount = NULL; local
1653 zval *regex, *replace, *subject, *zcount = NULL; local
1690 zend_string *regex; /* Regular expression */ local
1846 zend_string *regex = zend_string_init("/./us", sizeof("/./us")-1, 0); local
2006 zend_string *regex; /* Regular expression */ local
[all...]
/PHP_TRUNK/ext/pgsql/
H A Dpgsql.c5721 static int php_pgsql_convert_match(const char *str, size_t str_len, const char *regex , int icase)
5729 /* Check invalid chars for POSIX regex */
5742 if ((re = pcre_compile(regex, options, &err_msg, &err_offset, NULL)) == NULL) {
5743 php_error_docref(NULL, E_WARNING, "Cannot compile regex");
5753 php_error_docref(NULL, E_WARNING, "Cannot exec regex");
5941 /* FIXME: better regex must be used */
5983 /* better regex? */
6091 /* better regex? */
6132 /* better regex? IPV6 and IPV4 */
6166 /* better regex
[all...]
/PHP_TRUNK/ext/phar/
H A Dphar_object.c1720 /* {{{ proto array Phar::buildFromDirectory(string base_dir[, string regex])
1728 char *dir, *error, *regex = NULL; local
1742 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|s", &dir, &dir_len, &regex, &regex_len) == FAILURE) {
1788 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0, "Unable to instantiate regex iterator for %s", phar_obj->archive->fname);
1792 ZVAL_STRINGL(&arg2, regex, regex_len);
5165 ZEND_ARG_INFO(0, regex)
/PHP_TRUNK/win32/build/
H A Dconfutils.js437 'pcre-regex', 'fastcgi', 'force-cgi-redirect',
845 function GREP_HEADER(header_name, regex, path_to_check)
870 if (typeof(regex) == "string") {
871 regex = new RegExp(regex);
874 if (c.match(regex)) {
/PHP_TRUNK/win32/
H A Dsendmail.c147 zend_string *regex; local
154 regex = zend_string_init(PHP_WIN32_MAIL_UNIFY_PATTERN, sizeof(PHP_WIN32_MAIL_UNIFY_PATTERN)-1, 0);
156 result = php_pcre_replace(regex,
164 zend_string_release(regex);
171 regex = zend_string_init(PHP_WIN32_MAIL_RMVDBL_PATTERN, sizeof(PHP_WIN32_MAIL_RMVDBL_PATTERN)-1, 0);
173 result2 = php_pcre_replace(regex,
180 zend_string_release(regex);

Completed in 49 milliseconds