Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 139) sorted by relevance

123456

/PHP-8.0/win32/
H A Dfnmatch.c64 switch (c = *pattern++) { in fnmatch()
81 c = *pattern; in fnmatch()
84 c = *++pattern; in fnmatch()
119 if ((pattern = in fnmatch()
128 --pattern; in fnmatch()
164 if ( (negate = (*pattern == '!' || *pattern == '^')) ) in rangematch()
165 ++pattern; in rangematch()
172 c = *pattern++; in rangematch()
179 if (*pattern == '-' in rangematch()
181 pattern += 2; in rangematch()
[all …]
H A Dglob.c162 const char *pattern; in glob()
220 const Char *pattern; in globexp1()
227 if (pattern[0] == LBRACE && pattern[1] == RBRACE && pattern[2] == EOS)
355 const Char *pattern; in globtilde()
368 return pattern;
391 return pattern;
395 return pattern;
404 return pattern;
408 return pattern;
586 p = pattern;
[all …]
/PHP-8.0/ext/intl/tests/
H A Ddateformat_get_set_pattern2.phpt28 $pattern = ut_datefmt_get_pattern( $fmt);
29 $res_str .= "\nAfter call to get_pattern : pattern= $pattern";
39 $pattern = ut_datefmt_get_pattern( $fmt);
40 $res_str .= "\nAfter call to get_pattern : pattern= $pattern";
57 Creating IntlDateFormatter with pattern = dd-MM-YY
58 After call to get_pattern : pattern= dd-MM-YY
63 After call to get_pattern : pattern= DD-MM-YYYY hh:mm:ss
74 Setting IntlDateFormatter with pattern = yyyy/MM/dd
75 After call to get_pattern : pattern= yyyy/MM/dd
80 Setting IntlDateFormatter with pattern = yyyyMMdd
[all …]
H A Dformatter_get_set_pattern.phpt10 * Get/set pattern.
21 $res_str .= "Default pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
24 // Set a new pattern.
29 // Check if the pattern has been changed.
33 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
37 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
48 Default pattern: '#.###############################################################################…
50 New pattern: '#0.0'
52 New pattern: '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@…
H A Dformatter_get_set_pattern2.phpt10 * Get/set pattern.
21 $res_str .= "Default pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
24 // Set a new pattern.
29 // Check if the pattern has been changed.
33 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
37 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n";
48 Default pattern: '#'
50 New pattern: '0.0'
52 New pattern: '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@…
H A Dmsgfmt_get_set_pattern.phpt9 * Get/set pattern.
19 $res_str .= "Default pattern: '" . ut_msgfmt_get_pattern( $fmt ) . "'\n";
22 // Set a new pattern.
23 $pattern = "{0,number} trees hosting {1,number} monkeys";
24 $res = ut_msgfmt_set_pattern( $fmt, $pattern );
28 // Check if the pattern has been changed.
32 $res_str .= "New pattern: '" . ut_msgfmt_get_pattern( $fmt ) . "'\n";
35 ut_msgfmt_set_pattern($fmt, str_repeat($pattern, 10));
36 $res_str .= "New pattern: '" . ut_msgfmt_get_pattern( $fmt ) . "'\n";
48 Default pattern: '{0,number} monkeys on {1,number} trees'
[all …]
H A Ddateformat_bug71516.phpt2 Bug #71516 IntlDateFormatter losts locale if pattern is set via constructor
15 echo "Formatter without pattern: " . $goodFormatter->getLocale() . PHP_EOL;
16 echo "Formatter with pattern: " . $badFormatter->getLocale() . PHP_EOL;
17 echo "Formatter with pattern set later: " . $badFormatter2->getLocale() . PHP_EOL;
21 Formatter without pattern: ru
22 Formatter with pattern: ru
23 Formatter with pattern set later: ru
/PHP-8.0/ext/pcre/pcre2lib/
H A Dpcre2_convert.c491 c = *pattern++; in convert_glob_parse_class()
521 pattern++; in convert_glob_parse_class()
600 pattern++; in convert_glob_parse_range()
639 pattern++; in convert_glob_parse_range()
742 *from = pattern; in convert_glob_parse_range()
831 if (pattern < pattern_end && pattern[0] == CHAR_ASTERISK) in convert_glob()
865 do pattern++; while (pattern < pattern_end && in convert_glob()
877 pattern + 1 < pattern_end && pattern[1] == separator) in convert_glob()
926 pattern++; in convert_glob()
930 if (pattern < pattern_end && *pattern == CHAR_ASTERISK) in convert_glob()
[all …]
/PHP-8.0/ext/mbstring/tests/
H A Dbug43994.phpt48 mb_ereg(): Argument #1 ($pattern) must not be empty
50 mb_ereg(): Argument #1 ($pattern) must not be empty
55 mb_ereg(): Argument #1 ($pattern) must not be empty
57 mb_ereg(): Argument #1 ($pattern) must not be empty
62 mb_ereg(): Argument #1 ($pattern) must not be empty
64 mb_ereg(): Argument #1 ($pattern) must not be empty
69 mb_ereg(): Argument #1 ($pattern) must not be empty
71 mb_ereg(): Argument #1 ($pattern) must not be empty
76 mb_ereg(): Argument #1 ($pattern) must not be empty
78 mb_ereg(): Argument #1 ($pattern) must not be empty
[all …]
H A Dempty_pattern.phpt2 Check for empty pattern
27 mb_ereg_search_init(): Argument #2 ($pattern) must not be empty
28 No pattern was provided
H A Dmb_ereg_dupnames.phpt11 $pattern = '\w+((?<punct>?)|(?<punct>!))';
12 mb_ereg($pattern, '中?', $m);
14 mb_ereg($pattern, '中!', $m);
/PHP-8.0/ext/intl/msgformat/
H A Dmsgformat.stub.php7 public function __construct(string $locale, string $pattern) {} argument
13 public static function create(string $locale, string $pattern) {} argument
25 public static function formatMessage(string $locale, string $pattern, array $values) {} argument
37 public static function parseMessage(string $locale, string $pattern, string $message) {} argument
43 public function setPattern(string $pattern) {} argument
/PHP-8.0/ext/pcre/
H A Dphp_pcre.stub.php6 function preg_match(string $pattern, string $subject, &$matches = null, int $flags = 0, int $offset… argument
9 function preg_match_all(string $pattern, string $subject, &$matches = null, int $flags = 0, int $of… argument
12 function preg_replace(string|array $pattern, string|array $replacement, string|array $subject, int … argument
15 function preg_filter(string|array $pattern, string|array $replacement, string|array $subject, int $… argument
18 function preg_replace_callback(string|array $pattern, callable $callback, string|array $subject, in… argument
21 function preg_replace_callback_array(array $pattern, string|array $subject, int $limit = -1, &$coun… argument
23 function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false… argument
27 function preg_grep(string $pattern, array $array, int $flags = 0): array|false {} argument
H A Dphp_pcre_arginfo.h5 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
15 ZEND_ARG_TYPE_MASK(0, pattern, MAY_BE_STRING|MAY_BE_ARRAY, NULL)
25 ZEND_ARG_TYPE_MASK(0, pattern, MAY_BE_STRING|MAY_BE_ARRAY, NULL)
34 ZEND_ARG_TYPE_INFO(0, pattern, IS_ARRAY, 0)
42 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
54 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
/PHP-8.0/ext/standard/
H A Dbrowscap.c34 zend_string *pattern; member
108 for (; i < ZSTR_LEN(pattern); i++) { in browscap_compute_contains()
112 if (i + 1 < ZSTR_LEN(pattern) && in browscap_compute_contains()
121 for (; i < ZSTR_LEN(pattern); i++) { in browscap_compute_contains()
132 size_t i, len = ZSTR_LEN(pattern); in browscap_compute_regex_len()
134 switch (ZSTR_VAL(pattern)[i]) { in browscap_compute_regex_len() local
162 zend_str_tolower_copy(lc_pattern, ZSTR_VAL(pattern), ZSTR_LEN(pattern)); in browscap_convert_pattern()
369 pattern = zend_new_interned_string(zend_string_copy(pattern)); in php_browscap_parser_cb()
373 zend_string_release(pattern); in php_browscap_parser_cb()
386 entry->pattern = zend_string_copy(pattern); in php_browscap_parser_cb()
[all …]
/PHP-8.0/ext/opcache/tests/
H A Dbug78185.phpt14 $pattern = __DIR__ . '/*/' . __DIR__ . '/*78185.php.bin';
16 $pattern = __DIR__ . '/*/*/' . str_replace(':', '', __DIR__) . '/*78185.php.bin';
18 foreach (glob($pattern) as $p) {
25 $pattern = __DIR__ . '/*/' . __DIR__ . '/*78185.php.bin';
27 $pattern = __DIR__ . '/*/*/' . str_replace(':', '', __DIR__) . '/*78185.php.bin';
29 foreach (glob($pattern) as $p) {
/PHP-8.0/ext/pcre/tests/
H A Dbug79241.phpt10 $pattern = '/\b/u';
14 var_dump(preg_match($pattern, $text, $matches, 0, 0));
15 var_dump(preg_match($pattern, $text, $matches, 0, 1));
21 var_dump(preg_match($pattern, $text, $matches, 0, 4));
22 var_dump(preg_match($pattern, $text, $matches, 0, 0));
H A Dbug52971.phpt8 $pattern = '/\bwasser/iu';
9 preg_match_all($pattern, $message, $match, PREG_OFFSET_CAPTURE);
12 $pattern = '/[^\w]wasser/iu';
13 preg_match_all($pattern, $message, $match, PREG_OFFSET_CAPTURE);
H A Dbug70232.phpt5 $pattern = '~(?: |\G)\d\B\K~';
7 preg_match_all($pattern, $subject, $matches);
9 var_dump(preg_replace($pattern, "*", $subject));
10 var_dump(preg_split($pattern, $subject));
H A Dbug72688.phpt6 $pattern = [];
8 $pattern[] = "(?'group{$i}'{$i}$)";
10 $fullPattern = '/' . implode('|', $pattern) . '/uix';
/PHP-8.0/ext/standard/tests/file/
H A Dfnmatch_variation.phpt14 /* avoid using \, it breaks the pattern */
77 function match_( $pattern, $string ) {
78 for( $i = 0; $i<count($pattern); $i++ ) {
82 var_dump( fnmatch($pattern[$i], $string[$j]) );
190 fnmatch(): Argument #1 ($pattern) must not contain any null bytes
192 fnmatch(): Argument #1 ($pattern) must not contain any null bytes
272 fnmatch(): Argument #1 ($pattern) must not contain any null bytes
273 fnmatch(): Argument #1 ($pattern) must not contain any null bytes
274 fnmatch(): Argument #1 ($pattern) must not contain any null bytes
275 fnmatch(): Argument #1 ($pattern) must not contain any null bytes
[all …]
H A Dglob_error_002-win32.phpt2 Test glob() function: error condition - pattern too long.
12 echo "*** Testing glob() : error condition - pattern too long. ***\n";
19 *** Testing glob() : error condition - pattern too long. ***
H A Dglob_variation.phpt45 foreach($patterns as $pattern) {
48 var_dump( glob($pattern) ); // default arguments
49 var_dump( glob($pattern, GLOB_MARK) );
50 var_dump( glob($pattern, GLOB_NOSORT) );
51 var_dump( glob($pattern, GLOB_NOCHECK) );
52 var_dump( glob($pattern, GLOB_NOESCAPE) );
53 var_dump( glob($pattern, GLOB_ERR) );
60 echo "\n*** Testing glob() with pattern within braces ***\n";
76 foreach($patterns as $pattern) {
79 var_dump( glob($pattern, GLOB_ONLYDIR) );
[all …]
/PHP-8.0/ext/intl/formatter/
H A Dformatter_main.c29 char* pattern = NULL; in numfmt_ctor() local
38 &locale, &locale_len, &style, &pattern, &pattern_len ) == FAILURE ) in numfmt_ctor()
52 if(pattern && pattern_len) { in numfmt_ctor()
53 …intl_convert_utf8_to_utf16(&spattern, &spattern_len, pattern, pattern_len, &INTL_DATA_ERROR_CODE(n… in numfmt_ctor()
/PHP-8.0/ext/mbstring/
H A Dmbstring.stub.php96 function mb_ereg(string $pattern, string $string, &$matches = null): bool {} argument
99 function mb_eregi(string $pattern, string $string, &$matches = null): bool {} argument
101 function mb_ereg_replace(string $pattern, string $replacement, string $string, ?string $options = n… argument
103 function mb_eregi_replace(string $pattern, string $replacement, string $string, ?string $options = … argument
105 function mb_ereg_replace_callback(string $pattern, callable $callback, string $string, ?string $opt… argument
107 function mb_split(string $pattern, string $string, int $limit = -1): array|false {} argument
109 function mb_ereg_match(string $pattern, string $string, ?string $options = null): bool {} argument
111 function mb_ereg_search(?string $pattern = null, ?string $options = null): bool {} argument
113 function mb_ereg_search_pos(?string $pattern = null, ?string $options = null): array|false {} argument
115 function mb_ereg_search_regs(?string $pattern = null, ?string $options = null): array|false {} argument
[all …]

Completed in 62 milliseconds

123456