| /PHP_TRUNK/ext/ereg/regex/ |
| H A D | debug.c | 7 #include <regex.h>
|
| H A D | main.c | 4 #include <regex.h>
|
| H A D | regex.mak | 1 # 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 D | regular_expressions.inc | 5 * based on documentation on http://www.tin.org/bin/man.cgi?section=7&topic=regex .
|
| /PHP_TRUNK/ext/phar/phar/ |
| H A D | pharcommand.inc | 98 '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 D | keyfilter.inc | 25 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 D | regexfindfile.inc | 25 * @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 D | recursiveregexiterator.inc | 27 * @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 D | regexiterator.inc | 31 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 D | ltmain.sh | 1520 -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/win32/build/ |
| H A D | confutils.js | 417 'pcre-regex', 'fastcgi', 'force-cgi-redirect',
823 function GREP_HEADER(header_name, regex, path_to_check)
848 if (typeof(regex) == "string") {
849 regex = new RegExp(regex);
852 if (c.match(regex)) {
|
| /PHP_TRUNK/ext/ereg/ |
| H A D | ereg.c | 291 zval **regex, /* Regular expression */ local 305 if (zend_parse_parameters(argc TSRMLS_CC, "Zs|Z", ®ex, &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 D | php_regex.h | 26 * 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_TRUNK/ext/imap/ |
| H A D | php_imap.c | 1320 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 1321 const int regex_len = strlen(regex); 1322 pcre_cache_entry *pce; /* Compiled regex */ 1334 if ((pce = pcre_get_compiled_regex_cache(regex, regex_len TSRMLS_CC))== NULL) {
|
| /PHP_TRUNK/ext/pcre/ |
| H A D | php_pcre.h | 36 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);
|
| H A D | php_pcre.c | 229 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...] |
| /PHP_TRUNK/ext/pgsql/ |
| H A D | pgsql.c | 5176 static int php_pgsql_convert_match(const char *str, const char *regex , int icase TSRMLS_DC) 5187 regerr = regcomp(&re, regex, regopt); 5189 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot compile regex"); 5198 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "'%s' does not match with '%s'", str, regex); 5203 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot exec regex"); 5387 /* FIXME: better regex must be used */ 5429 /* FIXME: better regex must be used */ 5520 /* FIXME: Better regex must be used */ 5561 /* FIXME: Better regex must be used */ 5595 /* FIXME: better regex mus [all...] |
| /PHP_TRUNK/ext/spl/ |
| H A D | spl_iterators.c | 1447 char *regex; local 1451 intern->u.regex.use_flags = ZEND_NUM_ARGS() >= 5; 1452 intern->u.regex.flags = 0; 1453 intern->u.regex.preg_flags = 0; 1454 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Os|lll", &zobject, ce_inner, ®ex, ®ex_len, &mode, &intern->u.regex.flags, &intern->u.regex.preg_flags) == FAILURE) { 1463 intern->u.regex.mode = mode; 1464 intern->u.regex.regex 2165 zval *retval, *regex; local [all...] |
| H A D | spl_iterators.h | 162 char *regex; member in struct:_spl_dual_it_object::__anon24::__anon28 164 } regex; member in union:_spl_dual_it_object::__anon24
|
| /PHP_TRUNK/ext/phar/ |
| H A D | phar_object.c | 1782 /* {{{ proto array Phar::buildFromDirectory(string base_dir[, string regex]) 1790 char *dir, *error, *regex = NULL; local 1804 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &dir, &dir_len, ®ex, ®ex_len) == FAILURE) { 1860 zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Unable to instantiate regex iterator for %s", phar_obj->arc.archive->fname); 1865 ZVAL_STRINGL(&arg2, regex, regex_len, 0); 5241 ZEND_ARG_INFO(0, regex)
|