/PHP-8.4/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.4/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"; 53 Default pattern: '#' 55 New pattern: '0.0' 57 New pattern: '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@… 59 Error setting pattern value at line 0, offset 0: U_UNQUOTED_SPECIAL (65555)
|
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 | 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 | 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"; 51 Default pattern: '{0,number} monkeys on {1,number} trees' [all …]
|
H A D | spoofchecker_008.phpt | 42 Spoofchecker::setAllowedChars(): Argument #2 ($patternOptions) must be a valid pattern option, 0 or… 43 …ofchecker::setAllowedChars(): Argument #1 ($pattern) must be a valid regular expression character … 44 …ofchecker::setAllowedChars(): Argument #1 ($pattern) must be a valid regular expression character …
|
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.4/ext/pcre/pcre2lib/ |
H A D | pcre2_convert.c | 490 c = *pattern++; in convert_glob_parse_class() 520 pattern++; in convert_glob_parse_class() 607 pattern++; in convert_glob_parse_range() 646 pattern++; in convert_glob_parse_range() 749 *from = pattern; in convert_glob_parse_range() 838 if (pattern < pattern_end && pattern[0] == CHAR_ASTERISK) in convert_glob() 872 do pattern++; while (pattern < pattern_end && in convert_glob() 884 pattern + 1 < pattern_end && pattern[1] == separator) in convert_glob() 933 pattern++; in convert_glob() 937 if (pattern < pattern_end && *pattern == CHAR_ASTERISK) in convert_glob() [all …]
|
/PHP-8.4/ext/mbstring/libmbfl/mbfl/ |
H A D | generate_name_perfect_hash_table.php | 6 $pattern = '/static const mbfl_encoding \*mbfl_encoding_ptr_list\[\][\s\S]*?\{([^}]*)\};/'; 7 preg_match($pattern, $file_content, $matches); 20 $pattern = '/const mbfl_encoding\s+(' . implode('|', $struct_names) . ')\s* = {([^}]*)}/'; 21 preg_match_all($pattern, $fileContent, $matches, PREG_SET_ORDER); 92 $pattern = '/static const unsigned char asso_values\[\] =([^}]*)\};/'; variable 93 preg_match($pattern, $output, $matches); 100 $pattern = '/static const char \* const wordlist\[\] =([^}]*)\};/'; variable 101 preg_match($pattern, $output, $matches);
|
/PHP-8.4/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.4/ext/standard/ |
H A D | browscap.c | 32 zend_string *pattern; member 106 for (; i < ZSTR_LEN(pattern); i++) { in browscap_compute_contains() 110 if (i + 1 < ZSTR_LEN(pattern) && in browscap_compute_contains() 119 for (; i < ZSTR_LEN(pattern); i++) { in browscap_compute_contains() 130 size_t i, len = ZSTR_LEN(pattern); in browscap_compute_regex_len() 132 switch (ZSTR_VAL(pattern)[i]) { in browscap_compute_regex_len() local 161 char c = ZSTR_VAL(pattern)[i]; in browscap_convert_pattern() 373 pattern = zend_new_interned_string(zend_string_copy(pattern)); in php_browscap_parser_cb() 377 zend_string_release(pattern); in php_browscap_parser_cb() 390 entry->pattern = zend_string_copy(pattern); in php_browscap_parser_cb() [all …]
|
/PHP-8.4/ext/pcre/ |
H A D | php_pcre.stub.php | 105 function preg_match(string $pattern, string $subject, &$matches = null, int $flags = 0, int $offset… argument 108 function preg_match_all(string $pattern, string $subject, &$matches = null, int $flags = 0, int $of… argument 115 function preg_replace(string|array $pattern, string|array $replacement, string|array $subject, int … argument 121 function preg_filter(string|array $pattern, string|array $replacement, string|array $subject, int $… argument 127 function preg_replace_callback(string|array $pattern, callable $callback, string|array $subject, in… argument 130 function preg_replace_callback_array(array $pattern, string|array $subject, int $limit = -1, &$coun… argument 136 function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false… argument 142 function preg_grep(string $pattern, array $array, int $flags = 0): array|false {} argument
|
/PHP-8.4/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.4/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.4/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.4/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. ***
|