Home
last modified time | relevance | path

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

1234567

/PHP-7.4/ext/standard/
H A Dhtml.c124 pos++; in get_next_char()
132 MB_FAILURE(pos, utf8_lead(str[pos + 1]) ? 1 : 2); in get_next_char()
138 pos += 2; in get_next_char()
158 pos += 3; in get_next_char()
179 pos += 4; in get_next_char()
203 pos += 2; in get_next_char()
206 pos += 1; in get_next_char()
229 pos += 2; in get_next_char()
232 pos += 1; in get_next_char()
254 pos += 2; in get_next_char()
[all …]
H A Dformatted_print.c56 if ((*pos + 1) >= ZSTR_LEN(*buffer)) { in php_sprintf_appendchar()
61 ZSTR_VAL(*buffer)[(*pos)++] = add; in php_sprintf_appendchar()
69 if ((*pos + len) >= ZSTR_LEN(*buffer)) { in php_sprintf_appendchars()
75 } while ((*pos + len) >= nlen); in php_sprintf_appendchars()
79 memcpy(ZSTR_VAL(*buffer) + (*pos), add, len); in php_sprintf_appendchars()
80 *pos += len; in php_sprintf_appendchars()
102 if(m_width > INT_MAX - *pos - 1) { in php_sprintf_appendstring()
106 req_size = *pos + m_width + 1; in php_sprintf_appendstring()
127 ZSTR_VAL(*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
132 *pos += copy_len; in php_sprintf_appendstring()
[all …]
/PHP-7.4/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_memory_device.c57 device->pos = 0; in mbfl_memory_device_init()
96 device->pos = 0; in mbfl_memory_device_clear()
104 device->pos = 0; in mbfl_memory_device_reset()
111 if (device->pos > 0) { in mbfl_memory_device_unput()
112 device->pos--; in mbfl_memory_device_unput()
120 result->len = device->pos; in mbfl_memory_device_result()
125 device->pos= 0; in mbfl_memory_device_result()
259 w = &device->buffer[device->pos]; in mbfl_memory_device_strncat()
261 device->pos += len; in mbfl_memory_device_strncat()
278 device->pos= 0; in mbfl_wchar_device_init()
[all …]
/PHP-7.4/tests/lang/
H A DforeachLoopIteratorAggregate.001.phpt6 private $pos=0;
12 return $this->pos < count($this->myContent);
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];
[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 return $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 return $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-7.4/ext/dba/libcdb/
H A Dcdb.c46 static int cdb_match(struct cdb *c, char *key, unsigned int len, uint32 pos) in cdb_match() argument
55 if (cdb_read(c, buf, n, pos) == -1) in cdb_match()
59 pos += n; in cdb_match()
104 int cdb_read(struct cdb *c, char *buf, unsigned int len, uint32 pos) in cdb_read() argument
106 if (php_stream_seek(c->fp, pos, SEEK_SET) == -1) { in cdb_read()
132 uint32 pos; in cdb_findnext() local
153 uint32_unpack(buf + 4, &pos); in cdb_findnext()
154 if (!pos) in cdb_findnext()
162 if (cdb_read(c, buf, 8, pos) == -1) in cdb_findnext()
166 switch(cdb_match(c, key, len, pos + 8)) { in cdb_findnext()
[all …]
/PHP-7.4/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.phpt10 private $pos;
20 $this->pos = strlen($this->data);
32 $ret = substr($this->data, $this->pos, $count);
33 $this->pos += strlen($ret);
42 return $this->pos;
50 return $this->pos >= strlen($this->data);
61 $this->pos = $offset;
69 $this->pos += $offset;
77 $this->pos = strlen($this->data) + $offset;
/PHP-7.4/ext/intl/tests/
H A Drbbiter_getRuleStatus_basic.phpt29 echo "pos : {$rbbi->current()}\n",
36 pos : 0
38 pos : 12
40 pos : 16
42 pos : 17
44 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 );
H A Dformatter_parse.phpt27 $pos = 2;
28 $res_str .= ut_nfmt_parse( $fmt, "0.123 here", NumberFormatter::TYPE_DOUBLE, $pos ) . "\n";
29 $res_str .= "$pos\n";
/PHP-7.4/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 …]
H A Dgd_wbmp.c104 int x, y, pos; in _gdImageWBMPCtx() local
114 pos = 0; in _gdImageWBMPCtx()
118 wbmp->bitmap[pos] = WBMP_BLACK; in _gdImageWBMPCtx()
120 pos++; in _gdImageWBMPCtx()
147 int col, row, pos; in gdImageCreateFromWBMPCtx() local
164 pos = 0; in gdImageCreateFromWBMPCtx()
167 if (wbmp->bitmap[pos++] == WBMP_WHITE) { in gdImageCreateFromWBMPCtx()
/PHP-7.4/ext/mbstring/libmbfl/filters/
H A Dmbfilter_htmlent.c177 int pos, ent = 0; in mbfl_filt_conv_html_dec() local
194 for (pos=3; pos<filter->status; pos++) { in mbfl_filt_conv_html_dec()
195 int v = buffer[pos]; in mbfl_filt_conv_html_dec()
214 for (pos=2; pos<filter->status; pos++) { in mbfl_filt_conv_html_dec()
215 int v = buffer[pos]; in mbfl_filt_conv_html_dec()
231 for (pos = 0; pos < filter->status; pos++) { in mbfl_filt_conv_html_dec()
232 CK((*filter->output_function)(buffer[pos], filter->data)); in mbfl_filt_conv_html_dec()
286 int status, pos = 0; in mbfl_filt_conv_html_dec_flush() local
296 int e = (*filter->output_function)(buffer[pos++], filter->data); in mbfl_filt_conv_html_dec_flush()
H A Dmk_emoji_tbl.pl81 $pos = $s % 94;
82 $ku = ($s - $pos)/94;
110 $pos = $s % 94;
111 $ku = ($s - $pos)/94;
189 $pos = $s % 94;
190 $ku = ($s - $pos)/94;
217 $pos = $s % 94;
218 $ku = ($s - $pos)/94;
309 $pos = $s % 94;
310 $ku = ($s - $pos)/94;
[all …]
/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_stdio.c125 int in_buf = 0, cmd_pos = 0, pos, start; local
186 for (pos = start; pos < in_buf; pos++) {
187 switch (buf[pos]) {
191 start = pos + 1;
194 if (pos + sizeof(FPM_STDIO_CMD_FLUSH) <= in_buf) {
198 start = pos + sizeof(FPM_STDIO_CMD_FLUSH);
199 pos = start - 1;
201 } else if (!memcmp(buf + pos, FPM_STDIO_CMD_FLUSH, in_buf - pos)) {
202 cmd_pos = in_buf - pos;
209 if (start < pos) {
[all …]
/PHP-7.4/main/streams/
H A Dglob_wrapper.c104 const char *pos, *gpath = path; in php_glob_stream_path_split() local
106 if ((pos = strrchr(path, '/')) != NULL) { in php_glob_stream_path_split()
107 path = pos+1; in php_glob_stream_path_split()
110 if ((pos = strrchr(path, '\\')) != NULL) { in php_glob_stream_path_split()
111 path = pos+1; in php_glob_stream_path_split()
204 const char *tmp, *pos; in php_glob_stream_opener() local
229 pos = path; in php_glob_stream_opener()
230 if ((tmp = strrchr(pos, '/')) != NULL) { in php_glob_stream_opener()
231 pos = tmp+1; in php_glob_stream_opener()
235 pos = tmp+1; in php_glob_stream_opener()
[all …]
/PHP-7.4/ext/simplexml/tests/
H A Dbug36611.phpt11 <pos >
12 <pos/>
13 </pos>
22 $xml->pos["act_idx"] = $val;
/PHP-7.4/ext/intl/grapheme/
H A Dgrapheme_util.c252 int ret_len, pos; in grapheme_split_string() local
263 pos = 0; in grapheme_split_string()
267 pos = ubrk_next(bi); in grapheme_split_string()
269 if ( pos != UBRK_DONE ) { in grapheme_split_string()
289 int pos = 0; in grapheme_count_graphemes() local
296 pos = ubrk_next(bi); in grapheme_count_graphemes()
298 if ( UBRK_DONE != pos ) { in grapheme_count_graphemes()
312 int32_t pos; in grapheme_get_haystack_offset() local
330 pos = 0; in grapheme_get_haystack_offset()
334 pos = iter_op(bi); in grapheme_get_haystack_offset()
[all …]
/PHP-7.4/Zend/tests/
H A Dbug78340.phpt9 private $bytes, $pos;
13 $this->pos= 0;
19 $chunk= substr($this->bytes, $this->pos, $count);
20 $this->pos+= strlen($chunk);
25 return $this->pos >= strlen($this->bytes);
/PHP-7.4/ext/opcache/
H A Dzend_accelerator_blacklist.c54 blacklist->pos = 0; in zend_accel_blacklist_init()
83 if (blacklist->pos == 0) { in zend_accel_blacklist_update_regexp()
95 for (i = 0; i < blacklist->pos; ) { in zend_accel_blacklist_update_regexp()
163 if (*c || i == blacklist->pos - 1) { in zend_accel_blacklist_update_regexp()
231 if (blacklist->pos == blacklist->size) { in zend_accel_blacklist_allocate()
301 blacklist->entries[blacklist->pos].path_length = path_length; in zend_accel_blacklist_loadone()
302 blacklist->entries[blacklist->pos].path = (char *)malloc(path_length + 1); in zend_accel_blacklist_loadone()
303 if (!blacklist->entries[blacklist->pos].path) { in zend_accel_blacklist_loadone()
308 blacklist->entries[blacklist->pos].id = blacklist->pos; in zend_accel_blacklist_loadone()
310 blacklist->pos++; in zend_accel_blacklist_loadone()
[all …]
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_btree.c125 phpdbg_btree_position pos; in phpdbg_btree_find_between() local
127 pos.tree = tree; in phpdbg_btree_find_between()
128 pos.end = lower_idx; in phpdbg_btree_find_between()
129 pos.cur = higher_idx; in phpdbg_btree_find_between()
131 return pos; in phpdbg_btree_find_between()
134 phpdbg_btree_result *phpdbg_btree_next(phpdbg_btree_position *pos) { in phpdbg_btree_next() argument
135 phpdbg_btree_result *result = phpdbg_btree_find_closest(pos->tree, pos->cur); in phpdbg_btree_next()
137 if (result == NULL || result->idx < pos->end) { in phpdbg_btree_next()
141 pos->cur = result->idx - 1; in phpdbg_btree_next()
/PHP-7.4/ext/pcre/tests/
H A Dbug72685.phpt14 $pos = 0;
15 while (preg_match('/\G\w/u', $str, $m, 0, $pos)) ++$pos;
/PHP-7.4/Zend/
H A Dzend_llist.c258 ZEND_API void *zend_llist_get_first_ex(zend_llist *l, zend_llist_position *pos) in zend_llist_get_first_ex() argument
260 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_first_ex()
271 ZEND_API void *zend_llist_get_last_ex(zend_llist *l, zend_llist_position *pos) in zend_llist_get_last_ex() argument
273 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_last_ex()
284 ZEND_API void *zend_llist_get_next_ex(zend_llist *l, zend_llist_position *pos) in zend_llist_get_next_ex() argument
286 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_next_ex()
298 ZEND_API void *zend_llist_get_prev_ex(zend_llist *l, zend_llist_position *pos) in zend_llist_get_prev_ex() argument
300 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_prev_ex()

Completed in 54 milliseconds

1234567