Searched refs:re (Results 1 - 25 of 31) sorted by relevance

12

/PHP_TRUNK/Zend/
H A Dbench.php51 $s=0; $rec=0; $imc=0; $re=0; $im=0; $re2=0; $im2=0;
60 $re=$rec; variable
63 $re2=$re*$re;
66 $im=$re*$im*2+$imc;
67 $re=$re2-$im2+$rec; variable
68 $re2=$re*$re;
/PHP_TRUNK/ext/ereg/regex/
H A Dmain.c31 regex_t re; local
69 fprintf(stderr, "[-c copt][-C][-d] [re]\n");
78 err = regcomp(&re, argv[optind++], copts);
80 len = regerror(err, &re, erbuf, sizeof(erbuf));
85 regprint(&re, stdout);
88 regfree(&re);
96 err = regexec(&re, argv[optind], (size_t)NS, subs, eopts);
98 len = regerror(err, &re, erbuf, sizeof(erbuf));
140 regex_t re; local
186 re
212 regex_t re; local
503 regex_t re; local
[all...]
/PHP_TRUNK/ext/pcre/pcrelib/
H A Dpcre_printint.src157 real_pcre *re = (real_pcre *)external_re;
161 unsigned int options = re->options;
162 int offset = re->name_table_offset;
163 int count = re->name_count;
164 int size = re->name_entry_size;
166 if (re->magic_number != MAGIC_NUMBER)
177 code = codestart = (uschar *)re + offset + count * size;
H A Dpcredemo.c48 pcre *re; local
99 re = pcre_compile(
108 if (re == NULL)
122 re, /* the compiled pattern */
143 pcre_free(re); /* Release memory used for the compiled pattern */
188 re, /* the compiled pattern */
202 re, /* the compiled pattern */
208 re, /* the compiled pattern */
258 pcre_free(re); /* Release the memory used for the compiled pattern */
266 (void)pcre_fullinfo(re, NUL
[all...]
H A Dpcre_compile.c404 are passed to the outside world. Do not ever re-use any error number, because
3377 well. It means re-organizing the above code so as to get hold of the property
4784 repeated ones could be re-implemented independently so as not to need this,
6094 number are always OK. (An existing number can be re-used if (?|
7776 REAL_PCRE *re; local
8055 re = (REAL_PCRE *)(PUBL(malloc))(size);
8057 if (re == NULL)
8069 re->magic_number = MAGIC_NUMBER;
8070 re->size = (int)size;
8071 re
[all...]
H A Dpcre_exec.c307 #define RMATCH(ra,rb,rc,rd,re,rw) \
310 rrc = match(ra,rb,mstart,rc,rd,re,rdepth+1); \
319 #define RMATCH(ra,rb,rc,rd,re,rw) \
320 rrc = match(ra,rb,mstart,rc,rd,re,rdepth+1)
333 #define RMATCH(ra,rb,rc,rd,re,rw)\
348 newframe->Xeptrb = re;\
806 nomatch_mark. There is a flag that disables this opcode when re-matching a
1733 re-instated afterwards. We don't know how many are started and not yet
6210 /* This function applies a compiled re to a subject string and picks out
6270 const REAL_PCRE *re local
[all...]
H A Dpcre_fullinfo.c82 const REAL_PCRE *re = (const REAL_PCRE *)argument_re; local
85 if (re == NULL || where == NULL) return PCRE_ERROR_NULL;
95 if (re->magic_number != MAGIC_NUMBER)
96 return re->magic_number == REVERSED_MAGIC_NUMBER?
101 if ((re->flags & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE;
106 *((unsigned long int *)where) = re->options & PUBLIC_COMPILE_OPTIONS;
110 *((size_t *)where) = re->size;
130 *((int *)where) = re->top_bracket;
134 *((int *)where) = re->top_backref;
139 ((re
[all...]
H A Dpcre_get.c270 const REAL_PCRE *re = (const REAL_PCRE *)code; local
282 if ((re->options & PCRE_DUPNAMES) == 0 && (re->flags & PCRE_JCHANGED) == 0)
286 if ((re->options & PCRE_DUPNAMES) == 0 && (re->flags & PCRE_JCHANGED) == 0)
290 if ((re->options & PCRE_DUPNAMES) == 0 && (re->flags & PCRE_JCHANGED) == 0)
H A Dpcre_refcount.c82 REAL_PCRE *re = (REAL_PCRE *)argument_re; local
83 if (re == NULL) return PCRE_ERROR_NULL;
84 if (re->magic_number != MAGIC_NUMBER) return PCRE_ERROR_BADMAGIC;
85 if ((re->flags & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE;
86 re->ref_count = (-adjust > re->ref_count)? 0 :
87 (adjust + re->ref_count > 65535)? 65535 :
88 re->ref_count + adjust;
89 return re->ref_count;
H A Dpcre_study.c1318 re points to the compiled expression
1347 const REAL_PCRE *re = (const REAL_PCRE *)external_re; local
1351 if (re == NULL || re->magic_number != MAGIC_NUMBER)
1357 if ((re->flags & PCRE_MODE) == 0)
1375 code = (pcre_uchar *)re + re->name_table_offset +
1376 (re->name_count * re->name_entry_size);
1382 if ((re
[all...]
/PHP_TRUNK/win32/build/
H A Dbuildconf.js251 re = new RegExp("(ARG_(ENABLE|WITH)\([^;]+\);)", "gm");
252 calls = modules.match(re);
267 modules = modules.replace(re, "/* $1 */");
H A Dconfutils.js1289 var re = /\.h$/;
1293 if (s.match(re)) {
1336 var re = new RegExp("\.[a-z0-9A-Z]+$");
1376 obj = src.replace(re, ".obj");
1867 var re = subst_array[i];
1870 content = content.replace(re, rep);
1910 var re = null;
1933 re = new RegExp("^" + pat.replace(/\./g, '\\.').replace(/\*/g, '.*').replace(/\?/g, '.') + "$", "i");
1951 if (item_name.match(re)) {
1974 if (item_name.match(re)) {
[all...]
H A Dcvsclean.js81 var re = new RegExp(retext);
89 if (item.match(re)) {
97 if (item.match(re)) {
108 var re = /^(config\.nice.*)|(\*)$/i;
112 if (l.length == 0 || re.test(l)) {
H A Dphpize.js.in28 re = /\\script/i;
29 var PHP_DIR=FSO.GetParentFolderName(WScript.ScriptFullName).replace(re,"");
236 re = new RegExp("(ARG_(ENABLE|WITH)\([^;]+\);)", "gm");
237 calls = modules.match(re);
252 modules = modules.replace(re, "/* $1 */");
H A Dsvnclean.js81 var re = new RegExp(retext);
89 if (item.match(re)) {
97 if (item.match(re)) {
108 var re = /^(config\.nice.*)|(\*)$/i;
112 if (l.length == 0 || re.test(l)) {
/PHP_TRUNK/ext/mbstring/oniguruma/win32/
H A DMakefile65 patchfiles = re.c.168.patch re.c.181.patch
/PHP_TRUNK/ext/ereg/
H A Dereg.c249 static void php_ereg_eprint(int err, regex_t *re TSRMLS_DC) {
256 buf_len = regerror(REG_ITOA | err, re, NULL, 0);
261 regerror(REG_ITOA | err, re, buf, buf_len);
266 len = regerror(err, re, NULL, 0);
277 regerror(err, re, message + buf_len, len);
295 regex_t re; local
319 err = regcomp(&re, Z_STRVAL_PP(regex), REG_EXTENDED | copts);
327 err = regcomp(&re, Z_STRVAL_PP(regex), copts);
331 php_ereg_eprint(err, &re TSRMLS_CC);
335 /* make a copy of the string we're lookin
405 regex_t re; local
632 regex_t re; local
[all...]
/PHP_TRUNK/ext/pcre/
H A Dphp_pcre.h44 pcre *re; member in struct:__anon141
H A Dphp_pcre.c93 pefree(pce->re, 1);
193 rc = pcre_fullinfo(pce->re, extra, PCRE_INFO_NAMECOUNT, &name_cnt);
202 rc1 = pcre_fullinfo(pce->re, extra, PCRE_INFO_NAMETABLE, &name_table);
203 rc2 = pcre_fullinfo(pce->re, extra, PCRE_INFO_NAMEENTRYSIZE, &name_size);
231 pcre *re = NULL; local
267 if (pcre_fullinfo(pce->re, NULL, PCRE_INFO_CAPTURECOUNT, &count) == PCRE_ERROR_BADMAGIC) {
399 re = pcre_compile(pattern,
405 if (re == NULL) {
417 extra = pcre_study(re, soptions, &error);
441 new_entry.re
[all...]
/PHP_TRUNK/ext/pdo/
H A Dpdo_sql_parser.c2 #line 1 "ext/pdo/pdo_sql_parser.re"
50 #line 55 "ext/pdo/pdo_sql_parser.re"
82 #line 63 "ext/pdo/pdo_sql_parser.re"
168 #line 62 "ext/pdo/pdo_sql_parser.re"
178 #line 65 "ext/pdo/pdo_sql_parser.re"
215 #line 64 "ext/pdo/pdo_sql_parser.re"
296 #line 60 "ext/pdo/pdo_sql_parser.re"
370 #line 61 "ext/pdo/pdo_sql_parser.re"
392 #line 59 "ext/pdo/pdo_sql_parser.re"
414 #line 58 "ext/pdo/pdo_sql_parser.re"
[all...]
/PHP_TRUNK/ext/standard/
H A Dbrowscap.c375 pcre *re; local
382 /* See if we have an exact match, if so, we're done... */
396 re = pcre_get_compiled_regex(Z_STRVAL_PP(browser_regex), &re_extra, &re_options TSRMLS_CC);
397 if (re == NULL) {
401 if (pcre_exec(re, re_extra, lookup_browser_name, lookup_browser_length, 0, re_options, NULL, 0) == 0) {
/PHP_TRUNK/ext/pgsql/
H A Dpgsql.c1112 * can re-use this connection. Bug #39979
5178 regex_t re; local
5187 regerr = regcomp(&re, regex, regopt);
5190 regfree(&re);
5193 subs = (regmatch_t *)ecalloc(sizeof(regmatch_t), re.re_nsub+1);
5195 regerr = regexec(&re, str, re.re_nsub+1, subs, 0);
5206 regfree(&re);
/PHP_TRUNK/ext/filter/
H A Dlogical_filters.c419 pcre *re = NULL; local
435 re = pcre_get_compiled_regex(regexp, &pcre_extra, &preg_options TSRMLS_CC);
436 if (!re) {
439 matches = pcre_exec(re, NULL, Z_STRVAL_P(value), Z_STRLEN_P(value), 0, 0, ovector, 3);
535 pcre *re = NULL; local
547 re = pcre_get_compiled_regex((char *)regexp, &pcre_extra, &preg_options TSRMLS_CC);
548 if (!re) {
551 matches = pcre_exec(re, NULL, Z_STRVAL_P(value), Z_STRLEN_P(value), 0, 0, ovector, 3);
/PHP_TRUNK/ext/mbstring/
H A Dphp_mbregex.c695 php_mb_regex_t *re; local
728 re = php_mbregex_compile_pattern(Z_STRVAL_PP(arg_pattern), Z_STRLEN_PP(arg_pattern), options, MBREX(current_mbctype), MBREX(regex_default_syntax) TSRMLS_CC);
729 if (re == NULL) {
737 if (onig_search(re, (OnigUChar *)string, (OnigUChar *)(string + string_len), (OnigUChar *)string, (OnigUChar *)(string + string_len), regs, 0) < 0) {
804 php_mb_regex_t *re; local
870 re = php_mbregex_compile_pattern(arg_pattern, arg_pattern_len, options, MBREX(current_mbctype), syntax TSRMLS_CC);
871 if (re == NULL) {
896 err = onig_search(re, (OnigUChar *)string, (OnigUChar *)string_lim, pos, (OnigUChar *)string_lim, regs, 0);
1055 php_mb_regex_t *re; local
1073 if ((re
1138 php_mb_regex_t *re; local
[all...]
/PHP_TRUNK/ext/zip/
H A Dphp_zip.c661 pcre *re = NULL; local
665 re = pcre_get_compiled_regex(regexp, &pcre_extra, &preg_options TSRMLS_CC);
666 if (!re) {
708 matches = pcre_exec(re, NULL, namelist[i], strlen(namelist[i]), 0, 0, ovector, 3);
945 /* ensure we're creating a temporary variable */

Completed in 70 milliseconds

12