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

/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/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.c1545 zend_string *regex; local
1548 intern->u.regex.use_flags = ZEND_NUM_ARGS() >= 5;
1549 intern->u.regex.flags = 0;
1550 intern->u.regex.preg_flags = 0;
1551 if (zend_parse_parameters(ZEND_NUM_ARGS(), "OS|lll", &zobject, ce_inner, &regex, &mode, &intern->u.regex.flags, &intern->u.regex.preg_flags) == FAILURE) {
1560 intern->u.regex.mode = mode;
1561 intern->u.regex.regex
[all...]
/PHP_TRUNK/win32/build/
H A Dconfutils.js436 'pcre-regex', 'fastcgi', 'force-cgi-redirect',
844 function GREP_HEADER(header_name, regex, path_to_check)
869 if (typeof(regex) == "string") {
870 regex = new RegExp(regex);
873 if (c.match(regex)) {
/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);
57 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex);
H A Dphp_pcre.c237 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex) argument
257 /* Try to lookup the cached regex entry, and if successful, just pass
259 pce = zend_hash_find_ptr(&PCRE_G(pcre_cache), regex);
273 p = regex->val;
280 p < regex->val + regex->len ? "Null byte in regex" : "Empty regular expression");
327 if (pp < regex->val + regex->len) {
328 php_error_docref(NULL,E_WARNING, "Null byte in regex");
487 pcre_get_compiled_regex(zend_string *regex, pcre_extra **extra, int *preg_options) argument
504 pcre_get_compiled_regex_ex(zend_string *regex, pcre_extra **extra, int *preg_options, int *compile_options) argument
546 zend_string *regex; /* Regular expression */ local
1000 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
1271 php_replace_in_subject(zval *regex, zval *replace, zval *subject, int limit, int is_callable_replace, int *replace_count) argument
1358 zval *regex, local
1482 zend_string *regex; /* Regular expression */ local
1631 zend_string *regex = zend_string_init("/./us", sizeof("/./us")-1, 0); local
1791 zend_string *regex; /* Regular expression */ local
[all...]
/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);
/PHP_TRUNK/ext/phar/
H A Dphar_object.c1712 /* {{{ proto array Phar::buildFromDirectory(string base_dir[, string regex])
1720 char *dir, *error, *regex = NULL; local
1734 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|s", &dir, &dir_len, &regex, &regex_len) == FAILURE) {
1780 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0, "Unable to instantiate regex iterator for %s", phar_obj->archive->fname);
1784 ZVAL_STRINGL(&arg2, regex, regex_len);
5111 ZEND_ARG_INFO(0, regex)
/PHP_TRUNK/ext/pgsql/
H A Dpgsql.c5718 static int php_pgsql_convert_match(const char *str, size_t str_len, const char *regex , int icase)
5726 /* Check invalid chars for POSIX regex */
5739 if ((re = pcre_compile(regex, options, &err_msg, &err_offset, NULL)) == NULL) {
5740 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot compile regex");
5750 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot exec regex");
5939 /* FIXME: better regex must be used */
5981 /* better regex? */
6089 /* better regex? */
6130 /* better regex? IPV6 and IPV4 */
6164 /* better regex
[all...]

Completed in 73 milliseconds