Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 219) sorted by relevance

123456789

/php-src/ext/tokenizer/tests/
H A DPhpToken_tokenize.phpt29 ["pos"]=>
40 ["pos"]=>
51 ["pos"]=>
62 ["pos"]=>
73 ["pos"]=>
84 ["pos"]=>
95 ["pos"]=>
106 ["pos"]=>
118 ["pos"]=>
129 ["pos"]=>
[all …]
/php-src/ext/standard/
H A Dhtml.c120 pos++; in get_next_char()
128 MB_FAILURE(pos, utf8_lead(str[pos + 1]) ? 1 : 2); in get_next_char()
134 pos += 2; in get_next_char()
154 pos += 3; in get_next_char()
175 pos += 4; in get_next_char()
199 pos += 2; in get_next_char()
202 pos += 1; in get_next_char()
225 pos += 2; in get_next_char()
228 pos += 1; in get_next_char()
250 pos += 2; in get_next_char()
[all …]
H A Dformatted_print.c54 if ((*pos + 1) >= ZSTR_LEN(*buffer)) { in php_sprintf_appendchar()
59 ZSTR_VAL(*buffer)[(*pos)++] = add; in php_sprintf_appendchar()
67 if ((*pos + len) >= ZSTR_LEN(*buffer)) { in php_sprintf_appendchars()
73 } while ((*pos + len) >= nlen); in php_sprintf_appendchars()
77 memcpy(ZSTR_VAL(*buffer) + (*pos), add, len); in php_sprintf_appendchars()
78 *pos += len; in php_sprintf_appendchars()
100 if(m_width > INT_MAX - *pos - 1) { in php_sprintf_appendstring()
104 req_size = *pos + m_width + 1; in php_sprintf_appendstring()
125 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
130 *pos += copy_len; in php_sprintf_appendstring()
[all …]
/php-src/ext/dom/lexbor/lexbor/core/
H A Din.c130 node->end = pos; in lexbor_in_node_split()
133 if (node->use > pos) { in lexbor_in_node_split()
135 node->use = pos; in lexbor_in_node_split()
138 new_node->use = pos; in lexbor_in_node_split()
151 while (node && (node->begin > pos || node->end < pos)) { in lexbor_in_node_find()
163 pos = pos + offset; in lexbor_in_node_pos_up()
170 return pos; in lexbor_in_node_pos_up()
183 pos = node->begin; in lexbor_in_node_pos_up()
196 pos = pos - offset; in lexbor_in_node_pos_down()
203 return pos; in lexbor_in_node_pos_down()
[all …]
/php-src/ext/opcache/jit/ir/dynasm/
H A Ddasm_ppc.h45 #define DASM_POS2IDX(pos) ((pos)&0x00ffffff) argument
46 #define DASM_POS2BIAS(pos) ((pos)&0xff000000) argument
48 #define DASM_POS2SEC(pos) ((pos)>>24) argument
49 #define DASM_POS2PTR(D, pos) (D->sections[DASM_POS2SEC(pos)].rbuf + (pos)) argument
169 int pos = sec->pos, ofs = sec->ofs; in dasm_put() local
214 *pl = pos; in dasm_put()
216 pos++; in dasm_put()
240 b[pos++] = n; in dasm_put()
244 b[pos++] = n; in dasm_put()
251 sec->pos = pos; in dasm_put()
[all …]
H A Ddasm_mips.h45 #define DASM_POS2IDX(pos) ((pos)&0x00ffffff) argument
46 #define DASM_POS2BIAS(pos) ((pos)&0xff000000) argument
48 #define DASM_POS2SEC(pos) ((pos)>>24) argument
49 #define DASM_POS2PTR(D, pos) (D->sections[DASM_POS2SEC(pos)].rbuf + (pos)) argument
169 int pos = sec->pos, ofs = sec->ofs; in dasm_put() local
210 b[pos] = -n; in dasm_put()
214 *pl = pos; in dasm_put()
216 pos++; in dasm_put()
240 b[pos++] = n; in dasm_put()
247 sec->pos = pos; in dasm_put()
[all …]
H A Ddasm_arm64.h48 #define DASM_POS2IDX(pos) ((pos)&0x00ffffff) argument
49 #define DASM_POS2BIAS(pos) ((pos)&0xff000000) argument
51 #define DASM_POS2SEC(pos) ((pos)>>24) argument
52 #define DASM_POS2PTR(D, pos) (D->sections[DASM_POS2SEC(pos)].rbuf + (pos)) argument
225 int pos = sec->pos, ofs = sec->ofs; in dasm_put() local
270 *pl = pos; in dasm_put()
272 pos++; in dasm_put()
276 b[pos++] = n; in dasm_put()
299 b[pos++] = n; in dasm_put()
342 sec->pos = pos; in dasm_put()
[all …]
H A Ddasm_arm.h46 #define DASM_POS2IDX(pos) ((pos)&0x00ffffff) argument
47 #define DASM_POS2BIAS(pos) ((pos)&0xff000000) argument
49 #define DASM_POS2SEC(pos) ((pos)>>24) argument
50 #define DASM_POS2PTR(D, pos) (D->sections[DASM_POS2SEC(pos)].rbuf + (pos)) argument
178 int pos = sec->pos, ofs = sec->ofs; in dasm_put() local
223 *pl = pos; in dasm_put()
225 pos++; in dasm_put()
247 b[pos++] = n; in dasm_put()
257 b[pos++] = n; in dasm_put()
268 sec->pos = pos; in dasm_put()
[all …]
H A Ddasm_x86.h44 #define DASM_POS2IDX(pos) ((pos)&0x00ffffff) argument
45 #define DASM_POS2BIAS(pos) ((pos)&0xff000000) argument
47 #define DASM_POS2SEC(pos) ((pos)>>24) argument
48 #define DASM_POS2PTR(D, pos) (D->sections[DASM_POS2SEC(pos)].rbuf + (pos)) argument
171 int pos = sec->pos, ofs = sec->ofs, mrm = -1; in dasm_put() local
234 b[pos] = -n; in dasm_put()
238 *pl = pos; in dasm_put()
240 pos++; in dasm_put()
271 sec->pos = pos; in dasm_put()
339 pos += 2; in dasm_link()
[all …]
/php-src/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_memory_device.c44 device->pos = 0; in mbfl_memory_device_init()
63 device->length = device->pos = 0; in mbfl_memory_device_clear()
68 device->pos = 0; in mbfl_memory_device_reset()
73 if (device->pos > 0) { in mbfl_memory_device_unput()
74 device->pos--; in mbfl_memory_device_unput()
80 result->len = device->pos; in mbfl_memory_device_result()
84 device->length = device->pos = 0; in mbfl_memory_device_result()
132 device->pos += len; in mbfl_memory_device_strncat()
146 device->pos = 0; in mbfl_wchar_device_init()
156 device->length = device->pos = 0; in mbfl_wchar_device_clear()
[all …]
H A Dmbfilter.c198 size_t pos; in mbfl_strcut() member
239 _bk.pos = device.pos; in mbfl_strcut()
254 if (device.pos > length) { in mbfl_strcut()
256 device.pos = _bk.pos; in mbfl_strcut()
269 bk.pos = device.pos; in mbfl_strcut()
283 device.pos = _bk.pos; in mbfl_strcut()
298 device.pos = bk.pos; in mbfl_strcut()
318 device.pos = bk.pos; in mbfl_strcut()
333 _bk.pos = device.pos; in mbfl_strcut()
346 device.pos = bk.pos; in mbfl_strcut()
[all …]
/php-src/tests/lang/
H A DforeachLoopIteratorAggregate.001.phpt6 private $pos=0;
18 $this->pos++;
24 $this->pos=0;
30 return $this->myContent[$this->pos];
36 return "meal " . $this->pos;
42 private $pos=0;
54 $this->pos++;
60 $this->pos=0;
66 return $this->myContent[$this->pos];
72 return "meal " . $this->pos;
[all …]
H A DforeachLoopIterator.001.phpt7 private $pos=0;
12 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
13 return $this->pos<3;
18 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
19 $this->myContent[$this->pos++];
24 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
25 $this->pos=0;
30 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
31 return $this->myContent[$this->pos];
37 return "meal " . $this->pos;
[all …]
H A DforeachLoopIteratorAggregate.003.phpt6 private $pos=0;
11 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
12 return $this->pos<3;
17 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
18 $this->myContent[$this->pos++];
23 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
24 $this->pos=0;
29 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
30 return $this->myContent[$this->pos];
35 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
[all …]
/php-src/ext/dba/libcdb/
H A Dcdb.c44 static int cdb_match(struct cdb *c, char *key, unsigned int len, uint32 pos) in cdb_match() argument
53 if (cdb_read(c, buf, n, pos) == -1) in cdb_match()
57 pos += n; in cdb_match()
102 int cdb_read(struct cdb *c, char *buf, unsigned int len, uint32 pos) in cdb_read() argument
104 if (php_stream_seek(c->fp, pos, SEEK_SET) == -1) { in cdb_read()
130 uint32 pos; in cdb_findnext() local
151 uint32_unpack(buf + 4, &pos); in cdb_findnext()
152 if (!pos) in cdb_findnext()
160 if (cdb_read(c, buf, 8, pos) == -1) in cdb_findnext()
164 switch(cdb_match(c, key, len, pos + 8)) { in cdb_findnext()
[all …]
/php-src/ext/intl/tests/
H A Drbbiter_getRuleStatus_basic.phpt27 echo "pos : {$rbbi->current()}\n",
33 pos : 0
35 pos : 12
37 pos : 16
39 pos : 17
41 pos : 19
H A Dformatter_parse_currency.phpt17 $pos = 0;
19 $num = ut_nfmt_parse_currency( $fmt, '$9,988,776.65', $currency, $pos );
23 $pos = 1;
25 $num = ut_nfmt_parse_currency( $fmt, ' $123.45', $currency, $pos );
/php-src/ext/standard/tests/file/
H A Dinclude_userstream_001.phpt10 private $pos;
15 $this->pos = strlen($this->data);
24 $ret = substr($this->data, $this->pos, $count);
25 $this->pos += strlen($ret);
31 return $this->pos;
36 return $this->pos >= strlen($this->data);
44 $this->pos = $offset;
52 $this->pos += $offset;
60 $this->pos = strlen($this->data) + $offset;
H A Dinclude_userstream_002.phpt11 private $pos;
21 $this->pos = strlen($this->data);
23 $this->pos = 0;
33 $ret = substr($this->data, $this->pos, $count);
34 $this->pos += strlen($ret);
43 return $this->pos;
51 return $this->pos >= strlen($this->data);
62 $this->pos = $offset;
70 $this->pos += $offset;
78 $this->pos = strlen($this->data) + $offset;
/php-src/ext/gd/libgd/
H A Dgd_io_dp.c35 int pos; member
146 return (dctx->dp->pos); in dynamicTell()
155 if (pos < 0) { in dynamicSeek()
165 bytesNeeded = pos; in dynamicSeek()
177 if (pos > dp->logicalSize) { in dynamicSeek()
178 dp->logicalSize = pos; in dynamicSeek()
181 dp->pos = pos; in dynamicSeek()
194 dp->pos = 0; in newDynamic()
250 dp->pos += rlen; in dynamicGetbuf()
290 dp->pos = 0; in allocDynamic()
[all …]
/php-src/ext/opcache/jit/ir/
H A Dir_strtab.c51 uint32_t pos, i; in ir_strtab_resize() local
62 pos = 0; in ir_strtab_resize()
68 pos += sizeof(ir_strtab_bucket); in ir_strtab_resize()
103 strtab->pos = 0; in ir_strtab_init()
122 while (pos != IR_INVALID_IDX) { in ir_strtab_find()
129 pos = p->next; in ir_strtab_find()
141 while (pos != IR_INVALID_IDX) { in ir_strtab_lookup()
148 pos = p->next; in ir_strtab_lookup()
169 pos = strtab->pos; in ir_strtab_lookup()
190 while (pos != IR_INVALID_IDX) { in ir_strtab_update()
[all …]
/php-src/sapi/fpm/fpm/
H A Dfpm_stdio.c176 int in_buf = 0, cmd_pos = 0, pos, start; local
237 for (pos = start; pos < in_buf; pos++) {
238 switch (buf[pos]) {
242 start = pos + 1;
245 if (pos + sizeof(FPM_STDIO_CMD_FLUSH) <= in_buf) {
249 start = pos + sizeof(FPM_STDIO_CMD_FLUSH);
250 pos = start - 1;
252 } else if (!memcmp(buf + pos, FPM_STDIO_CMD_FLUSH, in_buf - pos)) {
253 cmd_pos = in_buf - pos;
260 if (start < pos) {
[all …]
/php-src/ext/simplexml/tests/
H A Dbug36611.phpt11 <pos >
12 <pos/>
13 </pos>
22 $xml->pos["act_idx"] = $val;
/php-src/ext/intl/grapheme/
H A Dgrapheme_util.c235 int ret_len, pos; in grapheme_split_string() local
246 pos = 0; in grapheme_split_string()
250 pos = ubrk_next(bi); in grapheme_split_string()
252 if ( pos != UBRK_DONE ) { in grapheme_split_string()
272 int pos = 0; in grapheme_count_graphemes() local
279 pos = ubrk_next(bi); in grapheme_count_graphemes()
281 if ( UBRK_DONE != pos ) { in grapheme_count_graphemes()
295 int32_t pos; in grapheme_get_haystack_offset() local
313 pos = 0; in grapheme_get_haystack_offset()
317 pos = iter_op(bi); in grapheme_get_haystack_offset()
[all …]
/php-src/ext/mbstring/libmbfl/filters/
H A Dmbfilter_htmlent.c182 int pos; in mbfl_filt_conv_html_dec() local
200 for (pos=3; pos<filter->status; pos++) { in mbfl_filt_conv_html_dec()
201 int v = buffer[pos]; in mbfl_filt_conv_html_dec()
220 for (pos=2; pos<filter->status; pos++) { in mbfl_filt_conv_html_dec()
225 int v = buffer[pos]; in mbfl_filt_conv_html_dec()
241 for (pos = 0; pos < filter->status; pos++) { in mbfl_filt_conv_html_dec()
242 CK((*filter->output_function)(buffer[pos], filter->data)); in mbfl_filt_conv_html_dec()
269 pos = 0; in mbfl_filt_conv_html_dec()
289 pos = 0; in mbfl_filt_conv_html_dec()
309 int status, pos = 0; in mbfl_filt_conv_html_dec_flush() local
[all …]

Completed in 93 milliseconds

123456789