/PHP-8.2/win32/ |
H A D | fnmatch.c | 64 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 D | glob.c | 216 const Char* ptr = pattern; in globexp1() 220 if (pattern[0] == LBRACE && pattern[1] == RBRACE && pattern[2] == EOS) in globexp1() 352 return pattern; in globtilde() 375 return pattern; in globtilde() 379 return pattern; in globtilde() 388 return pattern; in globtilde() 392 return pattern; in globtilde() 516 if (*pattern == EOS) 561 p = pattern; in glob2() 572 pattern = p; in glob2() [all …]
|
/PHP-8.2/ext/intl/tests/ |
H A D | dateformat_get_set_pattern2.phpt | 28 $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 D | formatter_get_set_pattern2.phpt | 11 * Get/set pattern. 22 $res_str .= "Default pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n"; 25 // Set a new pattern. 30 // Check if the pattern has been changed. 34 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n"; 38 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n"; 49 Default pattern: '#' 51 New pattern: '0.0' 53 New pattern: '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@…
|
H A D | formatter_get_set_pattern.phpt | 11 * Get/set pattern. 22 $res_str .= "Default pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n"; 25 // Set a new pattern. 30 // Check if the pattern has been changed. 34 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n"; 38 $res_str .= "New pattern: '" . ut_nfmt_get_pattern( $fmt ) . "'\n"; 49 Default pattern: '#.###############################################################################… 51 New pattern: '#0.0' 53 New pattern: '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@…
|
H A D | msgfmt_get_set_pattern.phpt | 9 * 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 D | dateformat_bug71516.phpt | 2 Bug #71516 IntlDateFormatter losts locale if pattern is set via constructor 14 echo "Formatter without pattern: " . $goodFormatter->getLocale() . PHP_EOL; 15 echo "Formatter with pattern: " . $badFormatter->getLocale() . PHP_EOL; 16 echo "Formatter with pattern set later: " . $badFormatter2->getLocale() . PHP_EOL; 20 Formatter without pattern: ru 21 Formatter with pattern: ru 22 Formatter with pattern set later: ru
|
H A D | gh12020.phpt | 16 string(128) "pattern syntax error (parse error at offset 19, after " message with {", before or at … 18 string(116) "pattern syntax error (parse error at offset 6, after "some {", before or at "wrong.for… 20 string(128) "pattern syntax error (parse error at offset 19, after " message with {", before or at … 22 string(116) "pattern syntax error (parse error at offset 6, after "some {", before or at "wrong.for…
|
/PHP-8.2/ext/pcre/pcre2lib/ |
H A D | pcre2_convert.c | 491 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.2/ext/standard/ |
H A D | browscap.c | 34 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() 368 pattern = zend_new_interned_string(zend_string_copy(pattern)); in php_browscap_parser_cb() 372 zend_string_release(pattern); in php_browscap_parser_cb() 385 entry->pattern = zend_string_copy(pattern); in php_browscap_parser_cb() [all …]
|
/PHP-8.2/ext/intl/msgformat/ |
H A D | msgformat.stub.php | 8 public function __construct(string $locale, string $pattern) {} argument 14 public static function create(string $locale, string $pattern): ?MessageFormatter {} argument 26 …public static function formatMessage(string $locale, string $pattern, array $values): string|false… argument 40 …public static function parseMessage(string $locale, string $pattern, string $message): array|false… argument 46 public function setPattern(string $pattern): bool {} argument
|
/PHP-8.2/ext/pcre/ |
H A D | php_pcre.stub.php | 102 function preg_match(string $pattern, string $subject, &$matches = null, int $flags = 0, int $offset… argument 105 function preg_match_all(string $pattern, string $subject, &$matches = null, int $flags = 0, int $of… argument 111 function preg_replace(string|array $pattern, string|array $replacement, string|array $subject, int … argument 117 function preg_filter(string|array $pattern, string|array $replacement, string|array $subject, int $… argument 123 function preg_replace_callback(string|array $pattern, callable $callback, string|array $subject, in… argument 126 function preg_replace_callback_array(array $pattern, string|array $subject, int $limit = -1, &$coun… argument 132 function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false… argument 138 function preg_grep(string $pattern, array $array, int $flags = 0): array|false {} argument
|
/PHP-8.2/ext/opcache/tests/ |
H A D | bug78185.phpt | 15 $pattern = __DIR__ . '/*/' . __DIR__ . '/*78185.php.bin'; 17 $pattern = __DIR__ . '/*/*/' . str_replace(':', '', __DIR__) . '/*78185.php.bin'; 19 foreach (glob($pattern) as $p) { 26 $pattern = __DIR__ . '/*/' . __DIR__ . '/*78185.php.bin'; 28 $pattern = __DIR__ . '/*/*/' . str_replace(':', '', __DIR__) . '/*78185.php.bin'; 30 foreach (glob($pattern) as $p) {
|
/PHP-8.2/ext/mbstring/tests/ |
H A D | bug43994.phpt | 14 * pattern is supplied to mb_ereg. Similar error message to ereg(). 46 mb_ereg(): Argument #1 ($pattern) must not be empty 48 mb_ereg(): Argument #1 ($pattern) must not be empty 53 mb_ereg(): Argument #1 ($pattern) must not be empty 55 mb_ereg(): Argument #1 ($pattern) must not be empty 60 mb_ereg(): Argument #1 ($pattern) must not be empty 62 mb_ereg(): Argument #1 ($pattern) must not be empty 67 mb_ereg(): Argument #1 ($pattern) must not be empty 69 mb_ereg(): Argument #1 ($pattern) must not be empty
|
H A D | empty_pattern.phpt | 2 Check for empty pattern 28 mb_ereg_search_init(): Argument #2 ($pattern) must not be empty 29 No pattern was provided
|
H A D | mb_ereg_dupnames.phpt | 12 $pattern = '\w+((?<punct>?)|(?<punct>!))'; 13 mb_ereg($pattern, '中?', $m); 15 mb_ereg($pattern, '中!', $m);
|
/PHP-8.2/ext/pcre/tests/ |
H A D | bug79241.phpt | 10 $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 D | bug52971.phpt | 8 $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 D | bug70232.phpt | 5 $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 D | bug72688.phpt | 6 $pattern = []; 8 $pattern[] = "(?'group{$i}'{$i}$)"; 10 $fullPattern = '/' . implode('|', $pattern) . '/uix';
|
/PHP-8.2/ext/standard/tests/file/ |
H A D | fnmatch_variation.phpt | 14 /* 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]) ); 188 fnmatch(): Argument #1 ($pattern) must not contain any null bytes 190 fnmatch(): Argument #1 ($pattern) must not contain any null bytes 270 fnmatch(): Argument #1 ($pattern) must not contain any null bytes 271 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 [all …]
|
H A D | glob_variation.phpt | 45 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 …]
|
H A D | glob_error_002-win32.phpt | 2 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 D | glob_variation-win32-mb.phpt | 43 foreach($patterns as $pattern) { 46 var_dump( glob($pattern) ); // default arguments 47 var_dump( glob($pattern, GLOB_MARK) ); 48 var_dump( glob($pattern, GLOB_NOSORT) ); 49 var_dump( glob($pattern, GLOB_NOCHECK) ); 50 var_dump( glob($pattern, GLOB_NOESCAPE) ); 51 var_dump( glob($pattern, GLOB_ERR) ); 58 echo "\n*** Testing glob() with pattern within braces ***\n"; 74 foreach($patterns as $pattern) { 77 var_dump( glob($pattern, GLOB_ONLYDIR) ); [all …]
|
/PHP-8.2/ext/mbstring/ |
H A D | mbstring.stub.php | 192 function mb_ereg(string $pattern, string $string, &$matches = null): bool {} argument 195 function mb_eregi(string $pattern, string $string, &$matches = null): bool {} argument 198 function mb_ereg_replace(string $pattern, string $replacement, string $string, ?string $options = n… argument 201 function mb_eregi_replace(string $pattern, string $replacement, string $string, ?string $options = … argument 204 function mb_ereg_replace_callback(string $pattern, callable $callback, string $string, ?string $opt… argument 210 function mb_split(string $pattern, string $string, int $limit = -1): array|false {} argument 212 function mb_ereg_match(string $pattern, string $string, ?string $options = null): bool {} argument 214 function mb_ereg_search(?string $pattern = null, ?string $options = null): bool {} argument 220 function mb_ereg_search_pos(?string $pattern = null, ?string $options = null): array|false {} argument 226 function mb_ereg_search_regs(?string $pattern = null, ?string $options = null): array|false {} argument [all …]
|