Searched defs:pattern (Results 1 - 25 of 32) sorted by relevance

12

/PHP_TRUNK/ext/pcre/
H A Dupgrade-pcre.php5 $pattern = 'pcre-*.tar.*'; variable
6 $newpcre = glob($pattern);
9 echo "more than one '$pattern' file. aborting\n";
15 die("need one '$pattern' file. aborting.\n");
/PHP_TRUNK/win32/
H A Dfnmatch.c46 * Compares a filename or pathname to a pattern.
59 PHPAPI int fnmatch(const char *pattern, const char *string, int flags) argument
65 switch (c = *pattern++) {
82 c = *pattern;
85 c = *++pattern;
92 /* Optimize for pattern with * at end or before /. */
108 if (!fnmatch(pattern, string, flags & ~FNM_PERIOD))
120 if ((pattern =
121 rangematch(pattern, *string, flags)) == NULL)
127 if ((c = *pattern
153 rangematch(const char *pattern, char test, int flags) argument
[all...]
/PHP_TRUNK/ext/mbstring/oniguruma/
H A Dregext.c163 onig_new_deluxe(regex_t** reg, const UChar* pattern, const UChar* pattern_end, argument
172 r = conv_encoding(ci->pattern_enc, ci->target_enc, pattern, pattern_end,
177 cpat = (UChar* )pattern;
199 if (cpat != pattern) xfree(cpat);
206 onig_recompile_deluxe(regex_t* reg, const UChar* pattern, const UChar* pattern_end, argument
212 r = onig_new_deluxe(&new_reg, pattern, pattern_end, ci, einfo);
H A Dreggnu.c82 re_compile_pattern(const char* pattern, int size, regex_t* reg, char* ebuf) argument
87 r = onig_compile(reg, (UChar* )pattern, (UChar* )(pattern + size), &einfo);
98 re_recompile_pattern(const char* pattern, int size, regex_t* reg, char* ebuf) argument
109 r = onig_recompile(reg, (UChar* )pattern, (UChar* )(pattern + size),
H A Dregparse.h287 UChar* pattern; member in struct:__anon274
342 extern int onig_parse_make_tree P_((Node** root, const UChar* pattern, const UChar* end, regex_t* reg, ScanEnv* env));
H A Dregposix.c134 regcomp(regex_t* reg, const char* pattern, int posix_options) argument
153 ENC_STRING_LEN(OnigEncDefaultCharEncoding, pattern, len);
154 r = onig_new(PONIG_C(reg), (UChar* )pattern, (UChar* )(pattern + len),
H A Dtestc.c34 static void xx(char* pattern, char* str, int from, int to, int mem, int not) argument
43 r = regcomp(&reg, pattern, REG_EXTENDED | REG_NEWLINE);
61 fprintf(stdout, "OK(N): /%s/ '%s'\n", pattern, str);
65 fprintf(stdout, "FAIL: /%s/ '%s'\n", pattern, str);
71 fprintf(stdout, "FAIL(N): /%s/ '%s'\n", pattern, str);
76 fprintf(stdout, "OK: /%s/ '%s'\n", pattern, str);
80 fprintf(stdout, "FAIL: /%s/ '%s' %d-%d : %d-%d\n", pattern, str,
92 r = onig_new(&reg, (UChar* )pattern, (UChar* )(pattern + SLEN(pattern)),
144 x2(char* pattern, char* str, int from, int to) argument
149 x3(char* pattern, char* str, int from, int to, int mem) argument
154 n(char* pattern, char* str) argument
[all...]
H A Dtestu.c58 static void xx(char* pattern, char* str, int from, int to, int mem, int not) argument
68 uconv(pattern, cpat, ulen(pattern));
71 r = regcomp(&reg, pattern, REG_EXTENDED | REG_NEWLINE);
121 uconv(pattern, cpat, ulen(pattern));
125 r = onig_new(&reg, (UChar* )pattern, (UChar* )(pattern + ulen(pattern)),
135 r = onig_new_deluxe(&reg, (UChar* )pattern,
190 x2(char* pattern, char* str, int from, int to) argument
195 x3(char* pattern, char* str, int from, int to, int mem) argument
200 n(char* pattern, char* str) argument
[all...]
/PHP_TRUNK/ext/mbstring/oniguruma/win32/
H A Dtestc.c34 static void xx(char* pattern, char* str, int from, int to, int mem, int not) argument
43 r = regcomp(&reg, pattern, REG_EXTENDED | REG_NEWLINE);
61 fprintf(stdout, "OK(N): /%s/ '%s'\n", pattern, str);
65 fprintf(stdout, "FAIL: /%s/ '%s'\n", pattern, str);
71 fprintf(stdout, "FAIL(N): /%s/ '%s'\n", pattern, str);
76 fprintf(stdout, "OK: /%s/ '%s'\n", pattern, str);
80 fprintf(stdout, "FAIL: /%s/ '%s' %d-%d : %d-%d\n", pattern, str,
92 r = onig_new(&reg, (UChar* )pattern, (UChar* )(pattern + SLEN(pattern)),
144 x2(char* pattern, char* str, int from, int to) argument
149 x3(char* pattern, char* str, int from, int to, int mem) argument
154 n(char* pattern, char* str) argument
[all...]
/PHP_TRUNK/ext/pcre/pcrelib/
H A Dpcreposix.c72 REG_EESCAPE, /* \ at end of pattern */
73 REG_EESCAPE, /* \c at end of pattern */
182 "pattern error", /* BADPAT */
257 pattern the pattern to compile
265 regcomp(regex_t *preg, const char *pattern, int cflags) argument
281 preg->re_pcre = pcre_compile2(pattern, options, &errorcode, &errorptr,
H A Dpcredemo.c50 char *pattern; local
80 /* After the options, we require exactly two arguments, which are the pattern,
89 pattern = argv[i];
95 * Now we are going to compile the regular expression pattern, and handle *
100 pattern, /* the pattern */
117 * pattern match against the subject string. This does just ONE match. If *
122 re, /* the compiled pattern */
123 NULL, /* no extra data - we didn't study the pattern */
143 pcre_free(re); /* Release memory used for the compiled pattern */
[all...]
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dreadcdf.c51 const char *pattern; member in struct:nv
127 for (i = 0; nv[i].pattern != NULL; i++)
128 if (strcasestr(vbuf, nv[i].pattern) != NULL) {
H A Dsoftmagic.c362 zend_string *pattern; local
368 pattern = zend_string_init("~%[-0-9.]*s~", sizeof("~%[-0-9.]*s~") - 1, 0);
369 if ((pce = pcre_get_compiled_regex(pattern, &re_extra, &re_options)) == NULL) {
374 zend_string_release(pattern);
1884 convert_libmagic_pattern(zval *pattern, char *val, int len, int options) argument
1915 ZVAL_NEW_STR(pattern, t);
2078 zval pattern; local
2088 convert_libmagic_pattern(&pattern, (char *)m->value.s, m->vallen, options);
2091 if ((pce = pcre_get_compiled_regex_cache(Z_STR(pattern))) == NULL) {
2092 zval_ptr_dtor(&pattern);
[all...]
/PHP_TRUNK/ext/curl/
H A Dinterface.c1356 static int curl_fnmatch(void *ctx, const char *pattern, const char *string) argument
1370 ZVAL_STRING(&argv[1], pattern);
/PHP_TRUNK/ext/ereg/
H A Dereg.c31 ZEND_ARG_INFO(0, pattern)
37 ZEND_ARG_INFO(0, pattern)
43 ZEND_ARG_INFO(0, pattern)
139 static int _php_regcomp(regex_t *preg, const char *pattern, int cflags) argument
142 int patlen = strlen(pattern);
156 rc = zend_hash_str_find_ptr(&EREG(ht_rc), pattern, patlen);
162 * is, we flush it and compile the pattern from scratch.
173 r = regcomp(preg, pattern, cflags);
186 zend_hash_str_update_mem(&EREG(ht_rc), pattern, patlen, local
192 r = regcomp(preg, pattern, cflag
406 php_ereg_replace(const char *pattern, const char *replace, const char *string, int icase, int extended) argument
557 zend_string *pattern, *arg_string; local
[all...]
/PHP_TRUNK/ext/intl/dateformat/
H A Ddateformat_format_object.cpp67 bool pattern = false; local
132 pattern = true;
177 if (pattern) {
/PHP_TRUNK/ext/intl/formatter/
H A Dformatter_main.c31 char* pattern = NULL; local
40 &locale, &locale_len, &style, &pattern, &pattern_len ) == FAILURE )
52 /* Convert pattern (if specified) to UTF-16. */
53 if(pattern && pattern_len) {
54 intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(nfo));
55 INTL_CTOR_CHECK_STATUS(nfo, "numfmt_create: error converting pattern to UTF-16");
73 /* {{{ proto NumberFormatter NumberFormatter::create( string $locale, int style[, string $pattern ] )
75 /* {{{ proto NumberFormatter numfmt_create( string $locale, int style[, string $pattern ] )
88 /* {{{ proto void NumberFormatter::__construct( string $locale, int style[, string $pattern ] )
/PHP_TRUNK/ext/intl/msgformat/
H A Dmsgformat.c32 char* pattern; local
43 &locale, &locale_len, &pattern, &pattern_len ) == FAILURE )
54 /* Convert pattern (if specified) to UTF-16. */
55 if(pattern && pattern_len) {
56 intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(mfo));
57 INTL_CTOR_CHECK_STATUS(mfo, "msgfmt_create: error converting pattern to UTF-16");
69 INTL_CTOR_CHECK_STATUS(mfo, "msgfmt_create: error converting pattern to quote-friendly format");
77 (mfo)->mf_data.orig_format = estrndup(pattern, pattern_len);
91 /* {{{ proto MessageFormatter MesssageFormatter::create( string $locale, string $pattern )
93 /* {{{ proto MessageFormatter msgfmt_create( string $locale, string $pattern )
[all...]
H A Dmsgformat_format.c93 /* {{{ proto mixed MessageFormatter::formatMessage( string $locale, string $pattern, array $args )
95 /* {{{ proto mixed msgfmt_format_message( string $locale, string $pattern, array $args )
103 char *pattern = NULL; local
112 &slocale, &slocale_len, &pattern, &pattern_len, &args ) == FAILURE )
122 if(pattern && pattern_len) {
123 intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(mfo));
127 "msgfmt_format_message: error converting pattern to UTF-16", 0 );
142 "msgfmt_format_message: error converting pattern to quote-friendly format", 0 );
H A Dmsgformat_parse.c85 /* {{{ proto array MessageFormatter::formatMessage( string $locale, string $pattern, string $source )
87 /* {{{ proto array numfmt_parse_message( string $locale, string $pattern, string $source )
94 char *pattern = NULL; local
105 &slocale, &slocale_len, &pattern, &pattern_len, &source, &src_len ) == FAILURE )
115 if(pattern && pattern_len) {
116 intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(mfo));
120 "msgfmt_parse_message: error converting pattern to UTF-16", 0 );
135 "msgfmt_parse_message: error converting pattern to quote-friendly format", 0 );
/PHP_TRUNK/ext/mbstring/
H A Dphp_mbregex.c447 static php_mb_regex_t *php_mbregex_compile_pattern(const char *pattern, int patlen, OnigOptionType options, OnigEncoding enc, OnigSyntaxType *syntax) argument
454 rc = zend_hash_str_find_ptr(&MBREX(ht_rc), (char *)pattern, patlen);
456 if ((err_code = onig_new(&retval, (OnigUChar *)pattern, (OnigUChar *)(pattern + patlen), options, enc, syntax, &err_info)) != ONIG_NORMAL) {
462 zend_hash_str_update_ptr(&MBREX(ht_rc), (char *)pattern, patlen, retval);
721 php_error_docref(NULL, E_WARNING, "empty pattern");
769 /* {{{ proto int mb_ereg(string pattern, string string [, array registers])
777 /* {{{ proto int mb_eregi(string pattern, string string [, array registers])
868 /* create regex pattern buffer */
1026 /* {{{ proto string mb_ereg_replace(string pattern, strin
[all...]
/PHP_TRUNK/ext/soap/
H A Dphp_sdl.h149 sdlRestrictionCharPtr pattern; member in struct:_sdlRestrictions
/PHP_TRUNK/ext/standard/
H A Dbrowscap.c79 static void convert_browscap_pattern(zval *pattern, int persistent) /* {{{ */ argument
86 res = zend_string_safe_alloc(Z_STRLEN_P(pattern), 2, 4, persistent);
89 lc_pattern = zend_str_tolower_dup(Z_STRVAL_P(pattern), Z_STRLEN_P(pattern));
94 for (i=0; i<Z_STRLEN_P(pattern); i++, j++) {
134 Z_STR_P(pattern) = res;
413 /* Pick which browser pattern replaces the least amount of
H A Ddir.c423 /* {{{ proto array glob(string pattern [, int flags])
424 Find pathnames matching a pattern */
433 char *pattern = NULL; local
441 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|l", &pattern, &pattern_len, &flags) == FAILURE) {
456 if (!IS_ABSOLUTE_PATH(pattern, pattern_len)) {
462 if (IS_SLASH(*pattern)) {
468 snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern);
469 pattern = work_pattern;
476 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) {
503 if (php_check_open_basedir_ex(pattern,
[all...]
/PHP_TRUNK/main/streams/
H A Dglob_wrapper.c46 char *pattern; member in struct:__anon266
76 if (pglob && pglob->pattern) {
81 return estrndup(pglob->pattern, pglob->pattern_len);
83 return pglob->pattern;
174 if (pglob->pattern) {
175 efree(pglob->pattern);
250 pglob->pattern = estrndup(pos, pglob->pattern_len);

Completed in 37 milliseconds

12