Home
last modified time | relevance | path

Searched refs:matches (Results 1 – 25 of 119) sorted by relevance

12345

/php-src/ext/intl/tests/
H A Dlocale_filter_matches4.phpt81 loc_range:de-de matches lang_tag de-DEVA ? NO
87 loc_range:de-de matches lang_tag de-DE ? YES
96 loc_range:de-de matches lang_tag sl_IT ? NO
117 loc_range:de-de matches lang_tag i-lux ? NO
123 loc_range:de-de matches lang_tag jbo ? NO
135 loc_range:sl_IT matches lang_tag de-DE ? NO
171 loc_range:sl_IT matches lang_tag jbo ? NO
231 loc_range:jbo matches lang_tag de-DE ? NO
240 loc_range:jbo matches lang_tag sl_IT ? NO
261 loc_range:jbo matches lang_tag i-lux ? NO
[all …]
H A Dlocale_filter_matches_icu70.phpt83 loc_range:de-de matches lang_tag de-DEVA ? NO
89 loc_range:de-de matches lang_tag de-DE ? YES
98 loc_range:de-de matches lang_tag sl_IT ? NO
119 loc_range:de-de matches lang_tag i-lux ? NO
125 loc_range:de-de matches lang_tag jbo ? NO
137 loc_range:sl_IT matches lang_tag de-DE ? NO
173 loc_range:sl_IT matches lang_tag jbo ? NO
233 loc_range:jbo matches lang_tag de-DE ? NO
242 loc_range:jbo matches lang_tag sl_IT ? NO
263 loc_range:jbo matches lang_tag i-lux ? NO
[all …]
H A Dlocale_filter_matches3.phpt81 loc_range:de-de matches lang_tag de-DEVA ? NO
87 loc_range:de-de matches lang_tag de-DE ? YES
96 loc_range:de-de matches lang_tag sl_IT ? NO
117 loc_range:de-de matches lang_tag i-lux ? NO
123 loc_range:de-de matches lang_tag jbo ? NO
135 loc_range:sl_IT matches lang_tag de-DE ? NO
171 loc_range:sl_IT matches lang_tag jbo ? NO
231 loc_range:jbo matches lang_tag de-DE ? NO
240 loc_range:jbo matches lang_tag sl_IT ? NO
261 loc_range:jbo matches lang_tag i-lux ? NO
[all …]
/php-src/ext/pcre/tests/
H A Dpreg_replace_callback_flags.phpt6 var_dump(preg_replace_callback('/./', function($matches) {
7 var_dump($matches);
8 return $matches[0][0];
13 ['/./' => function($matches) {
14 var_dump($matches);
15 return $matches[0][0];
22 var_dump($matches);
23 return $matches[0];
28 ['/(a)|(b)/' => function($matches) {
29 var_dump($matches);
[all …]
H A Dbug61780_1.phpt5 preg_match('/(4)?(2)?\d/', '23456', $matches, PREG_UNMATCHED_AS_NULL);
6 var_export($matches);
8 preg_match('/(4)?(2)?\d/', '23456', $matches, PREG_OFFSET_CAPTURE | PREG_UNMATCHED_AS_NULL);
9 var_export($matches);
11 preg_match_all('/(4)?(2)?\d/', '123456', $matches, PREG_UNMATCHED_AS_NULL);
12 var_export($matches);
14 preg_match_all('/(4)?(2)?\d/', '123456', $matches, PREG_OFFSET_CAPTURE | PREG_UNMATCHED_AS_NULL);
15 var_export($matches);
17 preg_match_all('/(4)?(2)?\d/', '123456', $matches, PREG_SET_ORDER | PREG_UNMATCHED_AS_NULL);
18 var_export($matches);
[all …]
H A Dbug79257.phpt6 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))/', 'foo', $matches);
7 var_dump($matches);
8 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))/', 'foo', $matches,
10 var_dump($matches);
11 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))/', 'foo', $matches,
13 var_dump($matches);
16 var_dump($matches);
19 var_dump($matches);
22 var_dump($matches);
25 var_dump($matches);
[all …]
H A Dbug61780_2.phpt5 preg_match('/(?<a>4)?(?<b>2)?\d/', '23456', $matches, PREG_UNMATCHED_AS_NULL);
6 var_export($matches);
8 preg_match('/(?<a>4)?(?<b>2)?\d/', '23456', $matches, PREG_OFFSET_CAPTURE | PREG_UNMATCHED_AS_NULL);
9 var_export($matches);
11 preg_match_all('/(?<a>4)?(?<b>2)?\d/', '123456', $matches, PREG_UNMATCHED_AS_NULL);
12 var_export($matches);
14 preg_match_all('/(?<a>4)?(?<b>2)?\d/', '123456', $matches, PREG_OFFSET_CAPTURE | PREG_UNMATCHED_AS_…
15 var_export($matches);
17 preg_match_all('/(?<a>4)?(?<b>2)?\d/', '123456', $matches, PREG_SET_ORDER | PREG_UNMATCHED_AS_NULL);
18 var_export($matches);
[all …]
H A Dbug81101.phpt6 $matches = [];
9 preg_match('/\\\\([^\\\\]+)\s*$/', $test, $matches);
10 var_dump($matches);
14 preg_match('/\\\\([^\\\\]+)\s*$/', $test2, $matches);
15 var_dump($matches);
H A Dmarks.phpt15 var_dump(preg_match($regex, '_c_', $matches));
16 var_dump($matches);
18 var_dump(preg_match_all($regex, '_a__b__c__d_', $matches, PREG_PATTERN_ORDER));
19 var_dump($matches);
21 var_dump(preg_match_all($regex, '_a__b__c__d_', $matches, PREG_SET_ORDER));
22 var_dump($matches);
24 var_dump(preg_replace_callback($regex, function($matches) {
25 var_dump($matches);
26 return $matches[0];
H A Dbug63055.phpt12 $matches = array("foo" => "bar"); /* this bucket will trigger the segfault */
16 $matches[1] = &$matches;
17 $matches[2] = $dummy;
19 preg_match_all("/(\d)+/", "foo123456bar", $matches);
H A Dbug72688.phpt2 Bug #72688 (preg_match missing group names in matches)
12 preg_match($fullPattern, '290', $matches);
14 var_dump($matches['group290']);
H A Dbug66121.phpt12 preg_match_all('/(?<!ක)/u', 'ම', $matches, PREG_OFFSET_CAPTURE);
13 var_dump($matches);
17 var_dump(preg_match_all('/(?<!ක)/u', "\xFCම", $matches, PREG_OFFSET_CAPTURE));
18 var_dump(preg_match_all('/(?<!ක)/u', "\xFCම", $matches, PREG_OFFSET_CAPTURE));
H A Dbug79241.phpt14 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 Dbug80118.phpt5 preg_match('~[^\p{Han}\p{Z}]~u', ' ', $matches);
6 var_dump($matches);
H A Dgh11374.phpt23 $res = preg_match('{^' . $regex . '$}x', '{a}', $matches, PREG_OFFSET_CAPTURE);
28 var_dump($matches === $matches2);
29 print_r($matches);
H A Dbug27011.phpt6 var_dump(preg_match_all('|(\w+)://([^\s"<]*[\w+#?/&=])|', "This is a text string", $matches, PREG_S…
7 var_dump($matches);
/php-src/ext/mbstring/libmbfl/mbfl/
H A Dgenerate_name_perfect_hash_table.php7 preg_match($pattern, $file_content, $matches);
8 assert(isset($matches[1]));
9 $array = explode(",\n", $matches[1]);
21 preg_match_all($pattern, $fileContent, $matches, PREG_SET_ORDER);
22 foreach ($matches as $match) {
93 preg_match($pattern, $output, $matches);
94 assert(isset($matches[1]));
95 $asso_values = trim($matches[1], "\t \n{");
101 preg_match($pattern, $output, $matches);
102 assert(isset($matches[1]));
[all …]
/php-src/ext/dom/lexbor/lexbor/core/
H A Dswar.h36 size_t bytes, matches, t1, t2, t3, t4; in lexbor_swar_seek4() local
46 matches = LEXBOR_SWAR_HAS_ZERO(t1) | LEXBOR_SWAR_HAS_ZERO(t2) in lexbor_swar_seek4()
49 if (matches) { in lexbor_swar_seek4()
50 data += ((((matches - 1) & LEXBOR_SWAR_ONES) * LEXBOR_SWAR_ONES) in lexbor_swar_seek4()
66 size_t bytes, matches, t1, t2, t3; in lexbor_swar_seek3() local
75 matches = LEXBOR_SWAR_HAS_ZERO(t1) | LEXBOR_SWAR_HAS_ZERO(t2) in lexbor_swar_seek3()
78 if (matches) { in lexbor_swar_seek3()
79 data += ((((matches - 1) & LEXBOR_SWAR_ONES) * LEXBOR_SWAR_ONES) in lexbor_swar_seek3()
/php-src/Zend/tests/
H A Dbug63055.phpt14 $matches = array("foo" => "bar"); /* this bucket will trigger the segfault */
18 $matches[1] = &$matches;
19 $matches[2] = $dummy;
21 str_replace("foo", "bar", "foobar", $matches);
/php-src/scripts/dev/
H A Dtidy.php92 return preg_replace_callback('/^ +/m', function(array $matches) {
94 $spaces = strlen($matches[0]);
102 return preg_replace_callback('/^[ \t]+/m', function(array $matches) {
105 foreach (str_split($matches[0]) as $char) {
129 function(array $matches) use($transformer) {
130 return $matches[1] . $transformer($matches[2]);
/php-src/ext/standard/html_tables/
H A Dhtml_table_gen.php185 if (preg_match("/^0x([0-9A-Z]{2})\t0x([0-9A-Z]{2,})/i", $l, $matches))
186 $map[] = array($matches[1], $matches[2]);
328 if (preg_match("/^0x([0-9A-Z]{2})\t0x([0-9A-Z]{2,})\s+#\s*(.*)$/i", $l, $matches))
329 $map[] = array($matches[1], $matches[2], rtrim($matches[3]));
423 if (preg_match('/^(#?[a-z0-9]+)\s+([a-f0-9]+) ([a-f0-9]+)/i', $l, $matches)) {
425 $dp[] = array($matches[1], $matches[2], $matches[3]);
426 } else if (preg_match('/^(#?[a-z0-9]+)\s+([a-f0-9]+)/i', $l, $matches)) {
427 $dp[] = array($matches[1], $matches[2]);
/php-src/.github/
H A Dnightly_matrix.php42 preg_match('(^#define PHP_MAJOR_VERSION (?<num>\d+)$)m', $content, $matches);
43 $major = (int) $matches['num'];
44 preg_match('(^#define PHP_MINOR_VERSION (?<num>\d+)$)m', $content, $matches);
45 $minor = (int) $matches['num'];
/php-src/ext/tokenizer/
H A Dtokenizer_data_gen.php22 preg_match_all('(^%token.*\b(?<token_name>T_.*?)\b)m', $incontent, $matches);
24 foreach ($matches['token_name'] as $tokenName) {
70 foreach ($matches['token_name'] as $tokenName) {
/php-src/ext/gd/tests/
H A Dbug50194.phpt29 assert(preg_match('/The images are equal|The images differ in (\d+) pixels/', $output, $matches));
30 if (isset($matches[1]) && $matches[1] > 2000) {
31 echo "The images differ in {$matches[1]} pixels.\n";
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_attr_server_version.phpt26 if (!preg_match('/(\d+)\.(\d+)\.(\d+)(.*)/', $version, $matches))
34 if ($matches[1] < 3)
35 printf("[003] Strange major version: '%s'. Should be more than 3\n", $matches[1]);
36 if ($matches[2] < 0)
37 printf("[004] Minor version should be at least 0, got '%s'\n", $matches[2]);
38 if ($matches[3] < 0)
39 printf("[005] Sub version should be at least 0, got '%s'\n", $matches[2]);

Completed in 37 milliseconds

12345