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

/PHP_TRUNK/ext/ereg/regex/
H A Ddebug.c7 #include <regex.h>
H A Dmain.c4 #include <regex.h>
H A Dregex.mak1 # Microsoft Developer Studio Generated NMAKE File, Based on regex.dsp
3 CFG=regex - Win32 Release
4 !MESSAGE No configuration specified. Defaulting to regex - Win32 Release.
7 !IF "$(CFG)" != "regex - Win32 Release" && "$(CFG)" != "regex - Win32 Debug"
12 !MESSAGE NMAKE /f "regex.mak" CFG="regex - Win32 Release"
16 !MESSAGE "regex - Win32 Release" (based on "Win32 (x86) Static Library")
17 !MESSAGE "regex - Win32 Debug" (based on "Win32 (x86) Static Library")
30 !IF "$(CFG)" == "regex
[all...]
/PHP_TRUNK/ext/ereg/tests/
H A Dregular_expressions.inc5 * based on documentation on http://www.tin.org/bin/man.cgi?section=7&topic=regex .
/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/ereg/
H A Dphp_regex.h26 * 0.. system regex
27 * 1.. bundled regex
37 #include "ext/ereg/regex/regex.h"
43 #define _REGEX_H 1 /* this should stop Apache from loading the system version of regex.h */
52 #define __REGEXP_LIBRARY_H__ 1 /* avoid Apache including regex.h */
59 #include <regex.h>
H A Dereg.c294 zval *regex, /* Regular expression */ local
308 if (zend_parse_parameters(argc TSRMLS_CC, "zs|z/", &regex, &findin, &findin_len, &array) == FAILURE) {
320 /* compile the regular expression from the supplied regex */
321 if (Z_TYPE_P(regex) == IS_STRING) {
322 err = regcomp(&re, Z_STRVAL_P(regex), REG_EXTENDED | copts);
325 if (Z_TYPE_P(regex) == IS_DOUBLE) {
326 convert_to_long_ex(regex); /* get rid of decimal places */
328 convert_to_string_ex(regex);
329 /* don't bother doing an extended regex with just a number */
330 err = regcomp(&re, Z_STRVAL_P(regex), copt
[all...]
/PHP_TRUNK/ext/pcre/
H A Dphp_pcre.h36 PHPAPI zend_string *php_pcre_replace(zend_string *regex, char *subject, int subject_len, zval *replace_val, int is_callable_replace, int limit, int *replace_count TSRMLS_DC);
37 PHPAPI pcre* pcre_get_compiled_regex(zend_string *regex, pcre_extra **extra, int *options TSRMLS_DC);
38 PHPAPI pcre* pcre_get_compiled_regex_ex(zend_string *regex, pcre_extra **extra, int *preg_options, int *coptions TSRMLS_DC);
57 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex TSRMLS_DC);
H A Dphp_pcre.c225 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex TSRMLS_DC)
255 /* Try to lookup the cached regex entry, and if successful, just pass
257 pce = zend_hash_find_ptr(&PCRE_G(pcre_cache), regex);
278 p = regex->val;
285 p < regex->val + regex->len ? "Null byte in regex" : "Empty regular expression");
332 if (pp < regex->val + regex->len) {
333 php_error_docref(NULL TSRMLS_CC,E_WARNING, "Null byte in regex");
486 pcre_get_compiled_regex(zend_string *regex, pcre_extra **extra, int *preg_options TSRMLS_DC) argument
503 pcre_get_compiled_regex_ex(zend_string *regex, pcre_extra **extra, int *preg_options, int *compile_options TSRMLS_DC) argument
543 zend_string *regex; /* Regular expression */ local
1079 php_pcre_replace(zend_string *regex, char *subject, int subject_len, zval *replace_val, int is_callable_replace, int limit, int *replace_count TSRMLS_DC) argument
1346 php_replace_in_subject(zval *regex, zval *replace, zval *subject, int limit, int is_callable_replace, int *replace_count TSRMLS_DC) argument
1431 zval *regex, local
1555 zend_string *regex; /* Regular expression */ local
1704 zend_string *regex = zend_string_init("/./us", sizeof("/./us")-1, 0); local
1863 zend_string *regex; /* Regular expression */ local
[all...]
/PHP_TRUNK/win32/build/
H A Dconfutils.js421 'pcre-regex', 'fastcgi', 'force-cgi-redirect',
827 function GREP_HEADER(header_name, regex, path_to_check)
852 if (typeof(regex) == "string") {
853 regex = new RegExp(regex);
856 if (c.match(regex)) {
/PHP_TRUNK/ext/phar/
H A Dphar_object.c1707 /* {{{ proto array Phar::buildFromDirectory(string base_dir[, string regex])
1715 char *dir, *error, *regex = NULL; local
1729 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &dir, &dir_len, &regex, &regex_len) == FAILURE) {
1775 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Unable to instantiate regex iterator for %s", phar_obj->archive->fname);
1779 ZVAL_STRINGL(&arg2, regex, regex_len);
5096 ZEND_ARG_INFO(0, regex)
/PHP_TRUNK/ext/spl/
H A Dspl_iterators.c1541 zend_string *regex; local
1544 intern->u.regex.use_flags = ZEND_NUM_ARGS() >= 5;
1545 intern->u.regex.flags = 0;
1546 intern->u.regex.preg_flags = 0;
1547 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "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
2257 zval retval, regex; local
[all...]
H A Dspl_iterators.h162 zend_string *regex; member in struct:_spl_dual_it_object::__anon165::__anon169
163 } regex; member in union:_spl_dual_it_object::__anon165
/PHP_TRUNK/ext/imap/
H A Dphp_imap.c1318 zend_string* regex; local
1319 pcre_cache_entry *pce; /* Compiled regex */
1329 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);
1333 if ((pce = pcre_get_compiled_regex_cache(regex TSRMLS_CC))== NULL) {
1334 zend_string_free(regex);
1338 zend_string_free(regex);
/PHP_TRUNK/ext/pgsql/
H A Dpgsql.c5622 static int php_pgsql_convert_match(const char *str, size_t str_len, const char *regex , int icase TSRMLS_DC)
5630 /* Check invalid chars for POSIX regex */
5643 regerr = regcomp(&re, regex, regopt);
5645 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot compile regex");
5654 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "'%s' does not match with '%s'", str, regex);
5659 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot exec regex");
5850 /* FIXME: better regex must be used */
5892 /* better regex? */
5995 /* better regex? */
6036 /* better regex
[all...]
/PHP_TRUNK/win32/
H A Dsendmail.c161 zend_string *regex; local
168 regex = zend_string_init(PHP_WIN32_MAIL_UNIFY_REPLACE, sizeof(PHP_WIN32_MAIL_UNIFY_REPLACE)-1, 0);
170 //zend_string *php_pcre_replace(zend_string *regex, char *subject, int subject_len, zval *replace_val, int is_callable_replace, int limit, int *replace_count TSRMLS_DC);
172 result = php_pcre_replace(regex,
181 zend_string_free(regex);
186 regex = zend_string_init(PHP_WIN32_MAIL_RMVDBL_PATTERN, sizeof(PHP_WIN32_MAIL_RMVDBL_PATTERN)-1, 0);
188 result2 = php_pcre_replace(regex,

Completed in 71 milliseconds