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

/PHP_5_5/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_5_5/ext/ereg/tests/
H A Dregular_expressions.inc5 * based on documentation on http://www.tin.org/bin/man.cgi?section=7&topic=regex .
/PHP_5_5/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_5_5/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_5_5/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_5_5/
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_5_5/ext/pcre/
H A Dphp_pcre.c229 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(char *regex, int regex_len TSRMLS_DC) argument
260 /* Try to lookup the cached regex entry, and if successful, just pass
262 if (zend_hash_find(&PCRE_G(pcre_cache), regex, regex_len+1, (void **)&pce) == SUCCESS) {
280 p = regex;
287 p < regex + regex_len ? "Null byte in regex" : "Empty regular expression");
334 if (pp < regex + regex_len) {
335 php_error_docref(NULL TSRMLS_CC,E_WARNING, "Null byte in regex");
352 while (pp < regex + regex_len) {
386 php_error_docref(NULL TSRMLS_CC,E_WARNING, "Null byte in regex");
462 zend_hash_update(&PCRE_G(pcre_cache), regex, regex_len+1, (void *)&new_entry, local
475 pcre_get_compiled_regex(char *regex, pcre_extra **extra, int *preg_options TSRMLS_DC) argument
492 pcre_get_compiled_regex_ex(char *regex, pcre_extra **extra, int *preg_options, int *compile_options TSRMLS_DC) argument
534 char *regex; /* Regular expression */ local
985 php_pcre_replace(char *regex, int regex_len, char *subject, int subject_len, zval *replace_val, int is_callable_replace, int *result_len, int limit, int *replace_count TSRMLS_DC) argument
1246 php_replace_in_subject(zval *regex, zval *replace, zval **subject, int *result_len, int limit, int is_callable_replace, int *replace_count TSRMLS_DC) argument
1336 zval **regex, local
1460 char *regex; /* Regular expression */ local
1743 char *regex; /* Regular expression */ local
[all...]
H A Dphp_pcre.h36 PHPAPI char *php_pcre_replace(char *regex, int regex_len, char *subject, int subject_len, zval *replace_val, int is_callable_replace, int *result_len, int limit, int *replace_count TSRMLS_DC);
37 PHPAPI pcre* pcre_get_compiled_regex(char *regex, pcre_extra **extra, int *options TSRMLS_DC);
38 PHPAPI pcre* pcre_get_compiled_regex_ex(char *regex, pcre_extra **extra, int *preg_options, int *coptions TSRMLS_DC);
55 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(char *regex, int regex_len TSRMLS_DC);
/PHP_5_5/ext/spl/
H A Dspl_iterators.h162 char *regex; member in struct:_spl_dual_it_object::__anon228::__anon232
164 } regex; member in union:_spl_dual_it_object::__anon228
H A Dspl_iterators.c1478 char *regex; local
1482 intern->u.regex.use_flags = ZEND_NUM_ARGS() >= 5;
1483 intern->u.regex.flags = 0;
1484 intern->u.regex.preg_flags = 0;
1485 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Os|lll", &zobject, ce_inner, &regex, &regex_len, &mode, &intern->u.regex.flags, &intern->u.regex.preg_flags) == FAILURE) {
1494 intern->u.regex.mode = mode;
1495 intern->u.regex.regex
2196 zval *retval, *regex; local
[all...]
/PHP_5_5/ext/ereg/
H A Dereg.c291 zval **regex, /* Regular expression */ local
305 if (zend_parse_parameters(argc TSRMLS_CC, "Zs|Z", &regex, &findin, &findin_len, &array) == FAILURE) {
317 /* compile the regular expression from the supplied regex */
318 if (Z_TYPE_PP(regex) == IS_STRING) {
319 err = regcomp(&re, Z_STRVAL_PP(regex), REG_EXTENDED | copts);
322 if (Z_TYPE_PP(regex) == IS_DOUBLE) {
323 convert_to_long_ex(regex); /* get rid of decimal places */
325 convert_to_string_ex(regex);
326 /* don't bother doing an extended regex with just a number */
327 err = regcomp(&re, Z_STRVAL_PP(regex), copt
[all...]
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>
/PHP_5_5/ext/imap/
H A Dphp_imap.c1319 char* regex = "/[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}/"; local
1320 const int regex_len = strlen(regex);
1321 pcre_cache_entry *pce; /* Compiled regex */
1333 if ((pce = pcre_get_compiled_regex_cache(regex, regex_len TSRMLS_CC))== NULL) {
/PHP_5_5/ext/pgsql/
H A Dpgsql.c5313 static int php_pgsql_convert_match(const char *str, size_t str_len, const char *regex , int icase TSRMLS_DC)
5321 /* Check invalid chars for POSIX regex */
5334 regerr = regcomp(&re, regex, regopt);
5336 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot compile regex");
5345 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "'%s' does not match with '%s'", str, regex);
5350 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot exec regex");
5551 /* FIXME: better regex must be used */
5593 /* FIXME: better regex must be used */
5678 /* FIXME: Better regex must be used */
5719 /* FIXME: Better regex mus
[all...]
/PHP_5_5/ext/phar/
H A Dphar_object.c1737 /* {{{ proto array Phar::buildFromDirectory(string base_dir[, string regex])
1745 char *dir, *error, *regex = NULL; local
1759 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &dir, &dir_len, &regex, &regex_len) == FAILURE) {
1811 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Unable to instantiate regex iterator for %s", phar_obj->arc.archive->fname);
1816 ZVAL_STRINGL(&arg2, regex, regex_len, 0);
5170 ZEND_ARG_INFO(0, regex)
/PHP_5_5/win32/build/
H A Dconfutils.js419 'pcre-regex', 'fastcgi', 'force-cgi-redirect',
825 function GREP_HEADER(header_name, regex, path_to_check)
850 if (typeof(regex) == "string") {
851 regex = new RegExp(regex);
854 if (c.match(regex)) {

Completed in 54 milliseconds