Searched refs:pattern (Results 1 - 25 of 52) sorted by relevance

123

/PHP_5_6/ext/pcre/pcrelib/
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_5_6/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_5_6/ext/ereg/tests/
H A Dregular_expressions.inc8 //array(pattern, string to match)
/PHP_5_6/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 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_5_6/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_5_6/ext/intl/doc/
H A Ddatefmt_api.php4 * Date Formatter class - locale-dependent formatting/parsing of dates using pattern strings and/or canned patterns.
8 * into PHP date values using pattern strings and/or canned patterns.
61 * @param [string] $pattern Optional pattern to use when formatting or parsing
66 public function __construct($locale, $datetype, $timetype, $timezone = null, $calendar= null , $pattern= null) {}
77 * @param [string] $pattern Optional pattern to use when formatting or parsing
82 public static function create($locale, $datetype, $timetype, $timezone = null, $calendar= null , $pattern= null) {}
209 * Gets the pattern in use
210 * @return string the pattern strin
[all...]
H A Dformatter_api.php7 * number according to the localized format or given pattern or set of rules, and to
142 * Creates a number formatter from locale and pattern. This formatter would be used to
147 * @param [string] $pattern Pattern string in case chose style requires pattern
150 public function __construct($locale, $style, $pattern = null) {}
155 * Creates a number formatter from locale and pattern. This formatter would be used to
163 * @param [string] $pattern Pattern string in case chose style requires pattern
168 public static function create($locale, $style, $pattern = null) {}
260 * Set pattern use
[all...]
H A Dmsgfmt_api.php7 * somewhat similar to sprintf. The pattern string has its component parts
19 * @param string $pattern the pattern string to stick arguments into
21 public function __construct($locale, $pattern) {}
27 * @param string $pattern the pattern string to stick arguments into
29 public static function create($locale, $pattern) {}
33 * @param array $args arguments to insert into the pattern string
51 * Inserts the items in $args into $pattern, formatting them
55 * @param string $pattern th
[all...]
/PHP_5_6/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 ] )
85 /* {{{ proto void NumberFormatter::__construct( string $locale, int style[, string $pattern ] )
/PHP_5_6/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_class.c116 ZEND_ARG_INFO(0, pattern)
124 ZEND_ARG_INFO(0, pattern)
133 ZEND_ARG_INFO(0, pattern)
H A Dmsgformat_format.c94 /* {{{ proto mixed MessageFormatter::formatMessage( string $locale, string $pattern, array $args )
96 /* {{{ proto mixed msgfmt_format_message( string $locale, string $pattern, array $args )
104 char *pattern = NULL; local
113 &slocale, &slocale_len, &pattern, &pattern_len, &args ) == FAILURE )
123 if(pattern && pattern_len) {
124 intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(mfo));
128 "msgfmt_format_message: error converting pattern to UTF-16", 0 TSRMLS_CC );
143 "msgfmt_format_message: error converting pattern to quote-friendly format", 0 TSRMLS_CC );
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 TSRMLS_CC );
135 "msgfmt_parse_message: error converting pattern to quote-friendly format", 0 TSRMLS_CC );
/PHP_5_6/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...]
H A Dfnmatch.h50 #define FNM_PREFIX_DIRS 0x20 /* Directory prefixes of pattern match too. */
52 PHPAPI int fnmatch(const char *pattern, const char *string, int flags);
H A Dglob.c50 * Set in gl_flags if pattern contained a globbing character.
52 * Same as GLOB_NOCHECK, but it will only append pattern if it did
169 glob(pattern, flags, errfunc, pglob)
170 const char *pattern;
185 patnext = (u_char *) pattern;
222 * Expand recursively a glob {} pattern. When there is no more expansion
227 globexp1(pattern, pglob)
228 const Char *pattern;
231 const Char* ptr = pattern;
235 if (pattern[
[all...]
/PHP_5_6/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 TSRMLS_DC) argument
142 int patlen = strlen(pattern);
156 if(zend_hash_find(&EREG(ht_rc), (char *) pattern, patlen+1, (void **) &rc) == SUCCESS
161 * is, we flush it and compile the pattern from scratch.
172 r = regcomp(preg, pattern, cflags);
185 zend_hash_update(&EREG(ht_rc), (char *) pattern, patlen+1,
191 r = regcomp(preg, pattern, cflag
403 php_ereg_replace(const char *pattern, const char *replace, const char *string, int icase, int extended TSRMLS_DC) argument
554 char *pattern, *arg_string; local
[all...]
H A Dphp_ereg.h38 PHP_EREG_API char *php_ereg_replace(const char *pattern, const char *replace, const char *string, int icase, int extended TSRMLS_DC);
/PHP_5_6/ext/standard/
H A Dbrowscap.c85 static void convert_browscap_pattern(zval *pattern, int persistent) /* {{{ */ argument
90 php_strtolower(Z_STRVAL_P(pattern), Z_STRLEN_P(pattern));
92 t = (char *) safe_pemalloc(Z_STRLEN_P(pattern), 2, 5, persistent);
97 for (i=0; i<Z_STRLEN_P(pattern); i++, j++) {
98 switch (Z_STRVAL_P(pattern)[i]) {
127 t[j] = Z_STRVAL_P(pattern)[i];
136 Z_STRVAL_P(pattern) = t;
137 Z_STRLEN_P(pattern) = j;
439 /* Pick which browser pattern replace
[all...]
H A Ddir.c421 /* {{{ proto array glob(string pattern [, int flags])
422 Find pathnames matching a pattern */
431 char *pattern = NULL; local
439 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|l", &pattern, &pattern_len, &flags) == FAILURE) {
454 if (!IS_ABSOLUTE_PATH(pattern, pattern_len)) {
460 if (IS_SLASH(*pattern)) {
466 snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern);
467 pattern = work_pattern;
474 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) {
501 if (php_check_open_basedir_ex(pattern,
[all...]
/PHP_5_6/main/streams/
H A Dglob_wrapper.c46 char *pattern; member in struct:__anon307
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 83 milliseconds

123