Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 369) sorted by relevance

12345678910>>...15

/PHP-8.1/ext/mbstring/tests/
H A Dmb_ereg_replace_named_subpatterns.phpt12 // \k<word> syntax
13 echo mb_ereg_replace('(?<a>\s*)(?<b>\w+)(?<c>\s*)', '\k<a>_\k<b>_\k<c>', 'a b c d e' ), "\n";
14 // \k'word' syntax
16 // numbered captures with \k<n> syntax
17 …echo mb_ereg_replace('(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(\10)', '\k<0>-\k<10>-', '123456789aa'), PHP_E…
18 // numbered captures with \k'n' syntax
19 …echo mb_ereg_replace('(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(\10)', "\k'0'-\k'10'-", '123456789aa'), PHP_E…
21 echo mb_ereg_replace('a', "\k'0'_\k<01>", 'a'), PHP_EOL;
34 a_\k<01>
36 -\k<>-
[all …]
/PHP-8.1/ext/standard/
H A Dcrc32_x86.c74 __m128i x0, x1, x2, k, shuf_mask; in crc32_pclmul_batch() local
136 x4 = _mm_clmulepi64_si128(x0, k, 0x00); in crc32_pclmul_batch()
137 x0 = _mm_clmulepi64_si128(x0, k, 0x11); in crc32_pclmul_batch()
140 x4 = _mm_clmulepi64_si128(x0, k, 0x00); in crc32_pclmul_batch()
141 x0 = _mm_clmulepi64_si128(x0, k, 0x11); in crc32_pclmul_batch()
144 x4 = _mm_clmulepi64_si128(x0, k, 0x00); in crc32_pclmul_batch()
166 x1 = _mm_clmulepi64_si128(x0, k, 0x11); in crc32_pclmul_batch()
171 x1 = _mm_clmulepi64_si128(x0, k, 0x01); in crc32_pclmul_batch()
178 x1 = _mm_clmulepi64_si128(x1, k, 0x00); in crc32_pclmul_batch()
180 x1 = _mm_clmulepi64_si128(x1, k, 0x10); in crc32_pclmul_batch()
[all …]
H A Dquot_print.c202 size_t i = 0, j = 0, k; in PHP_FUNCTION() local
226 k = 1; in PHP_FUNCTION()
227 while (str_in[i + k] && ((str_in[i + k] == 32) || (str_in[i + k] == 9))) { in PHP_FUNCTION()
229 k++; in PHP_FUNCTION()
231 if (!str_in[i + k]) { in PHP_FUNCTION()
233 i += k; in PHP_FUNCTION()
235 else if ((str_in[i + k] == 13) && (str_in[i + k + 1] == 10)) { in PHP_FUNCTION()
237 i += k + 2; in PHP_FUNCTION()
239 else if ((str_in[i + k] == 13) || (str_in[i + k] == 10)) { in PHP_FUNCTION()
241 i += k + 1; in PHP_FUNCTION()
/PHP-8.1/tests/lang/
H A DforeachLoop.013.phpt20 foreach ($a as $k=>&$v) {
21 echo " iteration $counter: \$k=$k; \$v=$v\n";
50 $transform = 'unset($a[$k]);';
80 iteration 0: $k=0; $v=v.0
94 iteration 0: $k=0; $v=v.0
112 iteration 0: $k=0; $v=v.0
113 iteration 1: $k=1; $v=v.1
133 iteration 0: $k=0; $v=v.0
134 iteration 1: $k=1; $v=v.1
153 iteration 0: $k=0; $v=v.0
[all …]
H A DforeachLoop.015.phpt22 foreach ($a as $k=>&$v) {
23 echo " iteration $counter: \$k=$k; \$v=$v\n";
52 $transform = 'unset($a[$k]);';
82 iteration 0: $k=0; $v=v.0
96 iteration 0: $k=0; $v=v.0
114 iteration 0: $k=0; $v=v.0
115 iteration 1: $k=1; $v=v.1
135 iteration 0: $k=0; $v=v.0
136 iteration 1: $k=1; $v=v.1
155 iteration 0: $k=0; $v=v.0
[all …]
H A DforeachLoop.012.phpt20 foreach ($a as $k=>$v) {
21 echo " iteration $counter: \$k=$k; \$v=$v\n";
50 $transform = 'unset($a[$k]);';
80 iteration 0: $k=0; $v=v.0
94 iteration 0: $k=0; $v=v.0
95 iteration 1: $k=1; $v=v.1
111 iteration 0: $k=0; $v=v.0
112 iteration 1: $k=1; $v=v.1
113 iteration 2: $k=2; $v=v.2
131 iteration 0: $k=0; $v=v.0
[all …]
H A DforeachLoop.014.phpt22 foreach ($a as $k=>$v) {
23 echo " iteration $counter: \$k=$k; \$v=$v\n";
52 $transform = 'unset($a[$k]);';
82 iteration 0: $k=0; $v=v.0
96 iteration 0: $k=0; $v=v.0
97 iteration 1: $k=1; $v=v.1
113 iteration 0: $k=0; $v=v.0
114 iteration 1: $k=1; $v=v.1
115 iteration 2: $k=2; $v=v.2
133 iteration 0: $k=0; $v=v.0
[all …]
/PHP-8.1/ext/mysqli/tests/
H A Dmysqli_stmt_get_result_metadata.phpt98 …$k, gettype($info->name), $info->name, gettype($fields['meta'][$k]->name), $fields['meta'][$k]->na…
102 …$k, gettype($info->orgname), $info->orgname, gettype($fields['meta'][$k]->orgname), $fields['meta'…
106 …$k, gettype($info->table), $info->table, gettype($fields['meta'][$k]->table), $fields['meta'][$k]-…
110 …$k, gettype($info->orgtable), $info->orgtable, gettype($fields['meta'][$k]->orgtable), $fields['me…
114 … $k, gettype($info->def), $info->def, gettype($fields['meta'][$k]->def), $fields['meta'][$k]->def);
122 …$k, gettype($info->length), $info->length, gettype($fields['meta'][$k]->length), $fields['meta'][$
126 …$k, gettype($info->charsetnr), $info->charsetnr, gettype($fields['meta'][$k]->charsetnr), $fields[…
130 …$k, gettype($info->flags), $info->flags, gettype($fields['meta'][$k]->flags), $fields['meta'][$k]-…
134 …$k, gettype($info->type), $info->type, gettype($fields['meta'][$k]->type), $fields['meta'][$k]->ty…
142 $fields['all_res'][$k]->max_length = $fields['all_meta'][$k]->max_length;
[all …]
/PHP-8.1/ext/mbstring/libmbfl/filters/
H A Dmbfilter_sjis_2004.c128 int k; in mbfl_filt_conv_jis2004_wchar() local
298 for (k = 0; k < jisx0213_p2_ofst_len; k++) { in mbfl_filt_conv_jis2004_wchar()
303 k -= (jisx0213_p2_ofst[k]-1); in mbfl_filt_conv_jis2004_wchar()
442 int k; in mbfl_filt_conv_wchar_jis2004() local
454 for (k = 0; k < jisx0213_u2_tbl_len; k++) { in mbfl_filt_conv_wchar_jis2004()
471 k++; in mbfl_filt_conv_wchar_jis2004()
507 for (k = 0; k < uni2jis_tbl_len; k++) { in mbfl_filt_conv_wchar_jis2004()
509 s1 = uni2jis_tbl[k][c-uni2jis_tbl_range[k][0]]; in mbfl_filt_conv_wchar_jis2004()
518 if (k >= 0) { in mbfl_filt_conv_wchar_jis2004()
526 if (k >= 0) { in mbfl_filt_conv_wchar_jis2004()
[all …]
H A Dmbfilter_cp936.c95 int k; in mbfl_filt_conv_cp936_wchar() local
133 for (k = 0; k < mbfl_cp936_pua_tbl_max; k++) { in mbfl_filt_conv_cp936_wchar()
135 c2 <= mbfl_cp936_pua_tbl[k][2] + in mbfl_filt_conv_cp936_wchar()
136 mbfl_cp936_pua_tbl[k][1] - mbfl_cp936_pua_tbl[k][0]) { in mbfl_filt_conv_cp936_wchar()
137 w = c2 - mbfl_cp936_pua_tbl[k][2] + mbfl_cp936_pua_tbl[k][0]; in mbfl_filt_conv_cp936_wchar()
186 int k, k1, k2; in mbfl_filt_conv_wchar_cp936() local
224 k = (k1 + k2) >> 1; in mbfl_filt_conv_wchar_cp936()
225 if (c < mbfl_cp936_pua_tbl[k][0]) { in mbfl_filt_conv_wchar_cp936()
226 k2 = k; in mbfl_filt_conv_wchar_cp936()
228 k1 = k + 1; in mbfl_filt_conv_wchar_cp936()
[all …]
H A Dmbfilter_big5.c146 int k, c1, w; in mbfl_filt_conv_big5_wchar() local
183 for (k = 0; k < sizeof(cp950_pua_tbl) / (sizeof(unsigned short)*4); k++) { in mbfl_filt_conv_big5_wchar()
184 if (c2 >= cp950_pua_tbl[k][2] && c2 <= cp950_pua_tbl[k][3]) { in mbfl_filt_conv_big5_wchar()
190 w = 157*(c1 - (cp950_pua_tbl[k][2]>>8)) + c - (c >= 0xa1 ? 0x62 : 0x40) + cp950_pua_tbl[k][0]; in mbfl_filt_conv_big5_wchar()
192 w = c2 - cp950_pua_tbl[k][2] + cp950_pua_tbl[k][0]; in mbfl_filt_conv_big5_wchar()
269 int k, s = 0; in mbfl_filt_conv_wchar_big5() local
287 for (k = 0; k < sizeof(cp950_pua_tbl) / (sizeof(unsigned short)*4); k++) { in mbfl_filt_conv_wchar_big5()
288 if (c <= cp950_pua_tbl[k][1]) { in mbfl_filt_conv_wchar_big5()
293 int c1 = c - cp950_pua_tbl[k][0]; in mbfl_filt_conv_wchar_big5()
295 int c2 = cp950_pua_tbl[k][2] >> 8; in mbfl_filt_conv_wchar_big5()
[all …]
/PHP-8.1/Zend/tests/
H A Dlist_keyed_evaluation_order_nested.phpt30 // 1. Evaluate $k
32 // 3. Evaluate $k[$a]
33 // 4. Assign $b from $k[$a]
35 // 6. Evaluate $k[$c]
36 // 7. Evaluate $k[$c][0]
37 // 8. Assign $d from $k[$c][0]
38 // 9. Evaluate $k[$c][1]
41 // 12. Evaluate $k[$f]
43 // 14. Evaluate $k[$f][$g]
46 // 17. Evaluate $k[$f][$i]
[all …]
H A Dbug64555.phpt13 foreach ($a as $k => $v) {
14 if ($k == 'unsetme') {
15 echo "Unsetting: $k\n";
16 unset($a[$k]);
17 } else if ($k == 'keepme') {
18 echo "Changing: $k\n";
19 $a[$k] = 42;
H A Dassign_coalesce_003.phpt16 public function &offsetGet($k): mixed {
17 echo "offsetGet($k)\n";
18 return $this->data[$k];
20 public function offsetExists($k): bool {
21 echo "offsetExists($k)\n";
22 return array_key_exists($k, $this->data);
24 public function offsetSet($k,$v): void {
25 echo "offsetSet($k,$v)\n";
26 $this->data[$k] = $v;
28 public function offsetUnset($k): void { }
H A Dbug37046.phpt10 foreach (s() as $k => $function) {
11 echo "op1 $k\n";
12 if ($k == 0) {
13 foreach (s() as $k => $function) {
14 echo "op2 $k\n";
H A Dbug39449.phpt10 public function __set($k, $v) {
11 $this->keys[$k] = $v;
21 foreach ($a->arr as $k => $v) {
22 echo "$k => $v\n";
27 foreach ($a->arr as $k => $v) {
28 echo "$k => $v\n";
/PHP-8.1/ext/spl/tests/
H A DSplFixedArray_change_size_during_iteration.phpt9 foreach ($splFixedArray as $k => $v) {
10 echo "$k => $v\n";
11 if ($k == 0) {
18 foreach ($splFixedArray as $k => $v) {
19 echo "$k => $v\n";
20 if ($k == 1) {
27 foreach ($splFixedArray as $k => $v) {
28 echo "$k => $v\n";
29 if ($k == 2) {
H A Ddllist_003.phpt12 foreach ($dll as $k => $v) {
13 echo "$k=>$v\n";
17 foreach ($dll as $k => $v) {
18 echo "$k=>$v\n";
23 foreach ($dll as $k => $v) {
24 echo "$k=>$v\n";
H A Ddllist_002.phpt13 foreach($dll as $k=>$v) {
14 echo "$k=>$v\n";
23 foreach($dll as $k=>$v) {
24 echo "$k=>$v\n";
30 foreach($dll2 as $k=>$v) {
31 echo "$k=>$v\n";
H A Drecursive_tree_iterator_001.phpt27 foreach(new RecursiveTreeIterator($it) as $k => $v) {
28 echo "[$k] => $v\n";
31 foreach(new RecursiveTreeIterator($it, RecursiveTreeIterator::BYPASS_CURRENT) as $k => $v) {
32 echo "[$k] => $v\n";
35 …erator($it, RecursiveTreeIterator::BYPASS_CURRENT|RecursiveTreeIterator::BYPASS_KEY) as $k => $v) {
36 echo "[$k] => $v\n";
39 foreach(new RecursiveTreeIterator($it, 0) as $k => $v) {
40 echo "[$k] => $v\n";
43 foreach(new RecursiveTreeIterator($it, 0, CachingIterator::CATCH_GET_CHILD) as $k => $v) {
44 echo "[$k] => $v\n";
/PHP-8.1/ext/dba/
H A Ddba_lmdb.c121 MDB_val k, v; in DBA_FETCH_FUNC() local
135 k.mv_data = key; in DBA_FETCH_FUNC()
163 MDB_val k, v; in DBA_UPDATE_FUNC() local
172 k.mv_data = key; in DBA_UPDATE_FUNC()
198 MDB_val k, v; in DBA_EXISTS_FUNC() local
234 MDB_val k; in DBA_DELETE_FUNC() local
265 MDB_val k, v; in DBA_FIRSTKEY_FUNC() local
292 if(k.mv_data) { in DBA_FIRSTKEY_FUNC()
294 ret = estrndup(k.mv_data, k.mv_size); in DBA_FIRSTKEY_FUNC()
305 MDB_val k, v; in DBA_NEXTKEY_FUNC() local
[all …]
/PHP-8.1/ext/standard/html_tables/
H A Dhtml_table_gen.php256 foreach ($a as $k => $v) {
342 foreach ($mappy as $k => $v) {
466 foreach ($multicp_rows as $k => $v) {
532 for ($k = 0; $k < 64; $k++) { variable
536 if (isset($mstable[$i][$k][$l])) {
602 for ($k = 0; $k < 64; $k++) { variable
603 if (isset($mstable[$i][$k]))
609 for ($k = 0; $k < 64; $k++) { variable
610 if ($k == 0) echo "\t";
611 elseif ($k % 4 == 0) echo "\n\t";
[all …]
/PHP-8.1/scripts/dev/
H A Dbless_tests.php185 for ($k = -$d; $k <= $d; $k += 2) {
186 if ($k === -$d || ($k !== $d && $v[$k-1] < $v[$k+1])) {
187 $x = $v[$k+1];
189 $x = $v[$k-1] + 1;
192 $y = $x - $k;
198 $v[$k] = $x;
211 $k = $x - $y;
213 if ($k === -$d || ($k !== $d && $v[$k-1] < $v[$k+1])) {
214 $prevK = $k + 1;
216 $prevK = $k - 1;
/PHP-8.1/Zend/tests/list/
H A Dlist_reference_007.phpt9 function offsetSet ($k, $v): void { $this->s[$k] = $v; }
10 function &offsetGet ($k): mixed { return $this->s[$k]; }
11 function offsetExists ($k): bool { return isset($this->s[$k]); }
12 function offsetUnset ($k): void { unset($this->s[$k]); }
/PHP-8.1/ext/standard/tests/array/
H A Dbug21918.phpt9 foreach($a as $k => $v) {
10 var_dump($k);
18 foreach($b as $k => $v) {
19 var_dump($k);
26 foreach($c as $k => $v) {
27 var_dump($k);

Completed in 60 milliseconds

12345678910>>...15