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_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_compile.c435 are passed to the outside world. Do not ever re-use any error number, because
5547 repeated ones could be re-implemented independently so as not to need this,
8709 REAL_PCRE *re; local
9062 re = (REAL_PCRE *)(PUBL(malloc))(size);
9063 if (re == NULL)
9075 re->magic_number = MAGIC_NUMBER;
9076 re->size = (int)size;
9077 re->options = cd->external_options;
9078 re->flags = cd->external_flags;
9079 re
[all...]
H A Dpcre_exec.c323 #define RMATCH(ra,rb,rc,rd,re,rw) \
326 rrc = match(ra,rb,mstart,rc,rd,re,rdepth+1); \
335 #define RMATCH(ra,rb,rc,rd,re,rw) \
336 rrc = match(ra,rb,mstart,rc,rd,re,rdepth+1)
349 #define RMATCH(ra,rb,rc,rd,re,rw)\
364 newframe->Xeptrb = re;\
813 not a matching mark, we have to re-run the match, ignoring the SKIP_ARG
816 SKIP_ARG gets to top level, the match is re-run with md->ignore_skip_arg
1728 re-instated afterwards. We don't know how many are started and not yet
6325 /* This function applies a compiled re t
6386 const REAL_PCRE *re = (const REAL_PCRE *)argument_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_study.c69 re compiled pattern block
82 find_minlength(const REAL_PCRE *re, const pcre_uchar *code, argument
133 d = find_minlength(re, cc, startcode, options, recurse_depth);
388 pcre_uchar *slot = (pcre_uchar *)re +
389 re->name_table_offset + GET2(cc, 1) * re->name_entry_size;
404 int dd = find_minlength(re, cs, startcode, options, recurse_depth);
407 slot += re->name_entry_size;
428 d = find_minlength(re, cs, startcode, options, recurse_depth);
481 branchlength += find_minlength(re, c
1386 const REAL_PCRE *re = (const REAL_PCRE *)external_re; local
[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 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)) {
H A Dconfutils.js1343 var re = /\.h$/;
1347 if (s.match(re)) {
1390 var re = new RegExp("\.[a-z0-9A-Z]+$");
1430 obj = src.replace(re, ".obj");
1940 var re = subst_array[i];
1943 content = content.replace(re, rep);
1983 var re = null;
2006 re = new RegExp("^" + pat.replace(/\./g, '\\.').replace(/\*/g, '.*').replace(/\?/g, '.') + "$", "i");
2024 if (item_name.match(re)) {
2047 if (item_name.match(re)) {
[all...]
/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/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);
531 pcre *re = NULL; local
543 re = pcre_get_compiled_regex((char *)regexp, &pcre_extra, &preg_options TSRMLS_CC);
544 if (!re) {
547 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/pcre/
H A Dphp_pcre.h44 pcre *re; member in struct:__anon151
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"
166 #line 62 "ext/pdo/pdo_sql_parser.re"
176 #line 65 "ext/pdo/pdo_sql_parser.re"
213 #line 64 "ext/pdo/pdo_sql_parser.re"
293 #line 60 "ext/pdo/pdo_sql_parser.re"
367 #line 61 "ext/pdo/pdo_sql_parser.re"
397 #line 59 "ext/pdo/pdo_sql_parser.re"
419 #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/zip/
H A Dphp_zip.c672 pcre *re = NULL; local
676 re = pcre_get_compiled_regex(regexp, &pcre_extra, &preg_options TSRMLS_CC);
677 if (!re) {
719 matches = pcre_exec(re, NULL, namelist[i], strlen(namelist[i]), 0, 0, ovector, 3);
966 /* ensure we're creating a temporary variable */
/PHP_TRUNK/ext/pgsql/
H A Dpgsql.c1287 * can re-use this connection. Bug #39979
5678 regex_t re; local
5697 regerr = regcomp(&re, regex, regopt);
5700 regfree(&re);
5703 subs = (regmatch_t *)ecalloc(sizeof(regmatch_t), re.re_nsub+1);
5705 regerr = regexec(&re, str, re.re_nsub+1, subs, 0);
5716 regfree(&re);

Completed in 71 milliseconds

12