Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 149) sorted by last modified time

123456

/php-src/ext/standard/
H A Dbrowscap.c33 zend_string *pattern; member
107 for (; i < ZSTR_LEN(pattern); i++) { in browscap_compute_contains()
111 if (i + 1 < ZSTR_LEN(pattern) && in browscap_compute_contains()
120 for (; i < ZSTR_LEN(pattern); i++) { in browscap_compute_contains()
131 size_t i, len = ZSTR_LEN(pattern); in browscap_compute_regex_len()
133 switch (ZSTR_VAL(pattern)[i]) { in browscap_compute_regex_len() local
162 char c = ZSTR_VAL(pattern)[i]; in browscap_convert_pattern()
374 pattern = zend_new_interned_string(zend_string_copy(pattern)); in php_browscap_parser_cb()
378 zend_string_release(pattern); in php_browscap_parser_cb()
391 entry->pattern = zend_string_copy(pattern); in php_browscap_parser_cb()
[all …]
H A Dbasic_functions.stub.php2708 function glob(string $pattern, int $flags = 0): array|false {}
2899 function fnmatch(string $pattern, string $filename, int $flags = 0): bool {}
H A Dbasic_functions_arginfo.h1132 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
1350 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
H A Ddir.c339 char *pattern = NULL; in PHP_FUNCTION() local
349 Z_PARAM_PATH(pattern, pattern_len) in PHP_FUNCTION()
365 if (!IS_ABSOLUTE_PATH(pattern, pattern_len)) { in PHP_FUNCTION()
371 if (IS_SLASH(*pattern)) { in PHP_FUNCTION()
377 snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern); in PHP_FUNCTION()
378 pattern = work_pattern; in PHP_FUNCTION()
385 if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) { in PHP_FUNCTION()
/php-src/ext/curl/
H A Dinterface.c610 static int curl_fnmatch(void *ctx, const char *pattern, const char *string) in curl_fnmatch() argument
619 ZVAL_STRING(&argv[1], pattern); in curl_fnmatch()
/php-src/ext/intl/dateformat/
H A Ddateformat.stub.php44 ?string $pattern = null argument
58 ?string $pattern = null argument
114 public function setPattern(string $pattern): bool {} argument
H A Ddateformat_arginfo.h10 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 1, "null")
19 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 1, "null")
47 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
/php-src/ext/mbstring/
H A Dmbstring.c503 static void *_php_mb_compile_regex(const char *pattern) in _php_mb_compile_regex() argument
509 if (!(retval = pcre2_compile((PCRE2_SPTR)pattern, PCRE2_ZERO_TERMINATED, in _php_mb_compile_regex()
513 php_error_docref(NULL, E_WARNING, "%s (offset=%zu): %s", pattern, err_offset, err_str); in _php_mb_compile_regex()
H A Dmbstring.stub.php203 function mb_ereg(string $pattern, string $string, &$matches = null): bool {} argument
206 function mb_eregi(string $pattern, string $string, &$matches = null): bool {} argument
209 function mb_ereg_replace(string $pattern, string $replacement, string $string, ?string $options = n… argument
212 function mb_eregi_replace(string $pattern, string $replacement, string $string, ?string $options = … argument
215 function mb_ereg_replace_callback(string $pattern, callable $callback, string $string, ?string $opt… argument
221 function mb_split(string $pattern, string $string, int $limit = -1): array|false {} argument
223 function mb_ereg_match(string $pattern, string $string, ?string $options = null): bool {} argument
225 function mb_ereg_search(?string $pattern = null, ?string $options = null): bool {} argument
231 function mb_ereg_search_pos(?string $pattern = null, ?string $options = null): array|false {} argument
237 function mb_ereg_search_regs(?string $pattern = null, ?string $options = null): array|false {} argument
[all …]
H A Dmbstring_arginfo.h231 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
243 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
256 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
265 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
273 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
281 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 1, "null")
288 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 1, "null")
300 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 1, "null")
/php-src/docs/
H A Drelease-process.md106 All non-stable releases follow a similar pattern, though pre-GA releases have
/php-src/sapi/cli/tests/
H A D006.phpt71 Parameter #0 [ <required> string $pattern ]
82 Parameter #0 [ <required> string $pattern ]
93 Parameter #0 [ <required> array|string $pattern ]
104 Parameter #0 [ <required> array|string $pattern ]
115 Parameter #0 [ <required> array|string $pattern ]
127 Parameter #0 [ <required> array $pattern ]
138 Parameter #0 [ <required> string $pattern ]
156 Parameter #0 [ <required> string $pattern ]
/php-src/scripts/gdb/
H A Dphp_gdb.py312 pattern = re.compile(r'#define _ZEND_TYPE_([^\s]+)_BIT\s+\(1u << (\d+)\)')
313 matches = pattern.findall(content)
317 pattern = re.compile(r'#define IS_([^\s]+)\s+(\d+)')
318 matches = pattern.findall(content)
/php-src/ext/intl/
H A Dphp_intl.stub.php338 ?string $pattern = null argument
358 function datefmt_set_pattern(IntlDateFormatter $formatter, string $pattern): bool {} argument
393 function numfmt_create(string $locale, int $style, ?string $pattern = null): ?NumberFormatter {} argument
420 function numfmt_set_pattern(NumberFormatter $formatter, string $pattern): bool {} argument
506 function msgfmt_create(string $locale, string $pattern): ?MessageFormatter {} argument
510 function msgfmt_format_message(string $locale, string $pattern, array $values): string|false {} argument
522 function msgfmt_parse_message(string $locale, string $pattern, string $message): array|false {} argument
524 function msgfmt_set_pattern(MessageFormatter $formatter, string $pattern): bool {} argument
H A Dphp_intl_arginfo.h285 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 1, "null")
320 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
373 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 1, "null")
437 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
571 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
581 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
592 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
598 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
/php-src/main/streams/
H A Dglob_wrapper.c42 char *pattern; member
71 if (pglob && pglob->pattern) { in _php_glob_stream_get_pattern()
75 return pglob->pattern; in _php_glob_stream_get_pattern()
177 if (pglob->pattern) { in php_glob_stream_close()
178 efree(pglob->pattern); in php_glob_stream_close()
266 pglob->pattern = estrndup(pos, pglob->pattern_len); in php_glob_stream_opener()
/php-src/sapi/fpm/tests/
H A Dtester.inc470 if ($pattern !== null && preg_match($pattern, $message)) {
579 * @param string $pattern Search pattern to find.
584 public function runTill(string $pattern)
1712 * Expect log pattern in logs.
1714 * @param string $pattern Log pattern
1722 string $pattern,
1728 $pattern,
1737 * Expect no such log pattern in logs.
1739 * @param string $pattern Log pattern
1747 string $pattern,
[all …]
H A Dlogtool.inc57 private ?string $pattern;
235 $this->pattern = sprintf(
243 $this->pattern = null;
543 $pattern,
716 string $pattern,
739 return $this->logReader->printError('The search pattern found - PATTERN: ' . $pattern);
749 * @param string|null $pattern
758 ?string $pattern = null,
764 if ($pattern !== null) {
784 * @param string|null $pattern
[all …]
/php-src/
H A Dphp.ini-development1614 ; This directive specifies the regex pattern of content types for which mb_output_handler()
H A Dphp.ini-production1616 ; This directive specifies the regex pattern of content types for which mb_output_handler()
/php-src/build/
H A Dgen_stub.php4548 $pattern = "#^(\s*\/\*\*)(\s*@genstubs-expose-comment-block)(\s*)$#m";
4550 if (preg_match($pattern, $text, $matches) !== 1) {
4558 $exposedDocComment = preg_replace($pattern, '$1$3', $text);
H A Dltmain.sh3799 $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
3802 $echo "*** using a regex pattern. Last file checked: $potlib"
/php-src/ext/phar/
H A Dphar_object.stub.php90 public function buildFromDirectory(string $directory, string $pattern = ""): array {} argument
276 public function buildFromDirectory(string $directory, string $pattern = ""): array {} argument
H A Dphar_object_arginfo.h29 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"\"")
/php-src/ext/pcre/
H A Dphp_pcre.c603 char *pattern; in pcre_get_compiled_regex_cache_ex() local
707 pattern = estrndup(p, pattern_len); in pcre_get_compiled_regex_cache_ex()
755 efree(pattern); in pcre_get_compiled_regex_cache_ex()
772 efree(pattern); in pcre_get_compiled_regex_cache_ex()
786 re = pcre2_compile((PCRE2_SPTR)pattern, pattern_len, coptions, &errnumber, &erroffset, cctx); in pcre_get_compiled_regex_cache_ex()
795 efree(pattern); in pcre_get_compiled_regex_cache_ex()
821 efree(pattern); in pcre_get_compiled_regex_cache_ex()
2439 HashTable *pattern, *subject_ht; in PHP_FUNCTION() local
2448 Z_PARAM_ARRAY_HT(pattern) in PHP_FUNCTION()
2466 ZEND_HASH_FOREACH_STR_KEY_VAL(pattern, str_idx_regex, replace) { in PHP_FUNCTION()

Completed in 134 milliseconds

123456