Home
last modified time | relevance | path

Searched refs:pos (Results 26 – 50 of 169) sorted by relevance

1234567

/PHP-7.2/ext/standard/tests/file/
H A Dinclude_userstream_003.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.2/ext/intl/tests/
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";
H A Dformatter_get_error.phpt17 $pos = 0;
18 $num = ut_nfmt_parse_currency( $fmt, '123.45', $currency, $pos );
/PHP-7.2/ext/mysqli/tests/
H A Dmysqli_stmt_get_result_metadata.phpt154 $pos = mt_rand(-1, $num + 1);
155 if ($pos >= 0 && $pos < $num) {
156 if (true !== mysqli_field_seek($res, $pos))
158 if (true !== $res_meta->field_seek($pos))
170 if ($tmp1 != $fields['res'][$pos]) {
173 var_dump($fields['res'][$pos]);
176 $pos++;
177 if ($pos !== ($tmp = mysqli_field_tell($res)))
179 gettype($pos), $pos, gettype($tmp), $tmp);
183 gettype($pos), $pos, gettype($tmp), $tmp);
[all …]
H A Dmysqli_stmt_get_result_seek.phpt75 $pos = mt_rand(-1, 4);
76 $tmp = mysqli_data_seek($res, $pos);
77 if (($pos >= 0 && $pos < 3)) {
81 if ($row[0] !== $pos + 1)
82 printf("[016] Expecting id = %d for pos %d got %s/%s\n",
83 $pos + 1, $pos, gettype($row[0]), $row[0]);
/PHP-7.2/ext/standard/tests/
H A Dbug71827.phpt5 $line = str_repeat(' ',20); $value ='03'; $pos=0; $len='2';
6 $line = substr_replace($line,$value,$pos,$len);
/PHP-7.2/Zend/
H A Dzend_llist.h66 ZEND_API void *zend_llist_get_first_ex(zend_llist *l, zend_llist_position *pos);
67 ZEND_API void *zend_llist_get_last_ex(zend_llist *l, zend_llist_position *pos);
68 ZEND_API void *zend_llist_get_next_ex(zend_llist *l, zend_llist_position *pos);
69 ZEND_API void *zend_llist_get_prev_ex(zend_llist *l, zend_llist_position *pos);
/PHP-7.2/ext/dba/
H A Ddba_cdb.c60 uint32 pos; /* current position for traversing */ member
140 # define php_cdb_read(cdb, buf, len, pos) cdb_read(cdb, buf, len, pos) argument
144 # define php_cdb_read(cdb, buf, len, pos) cdb_read(cdb, buf, len, pos) argument
281 cdb->pos = 2048 + 4 + 4 + klen + dlen; in DBA_FIRSTKEY_FUNC()
298 CSEEK(cdb->pos); in DBA_NEXTKEY_FUNC()
312 cdb->pos += 8 + klen + dlen; in DBA_NEXTKEY_FUNC()
/PHP-7.2/ext/dba/libinifile/
H A Dinifile.c77 ln->pos = 0; in inifile_line_free()
169 char *pos; in inifile_read() local
178 pos = strchr(fline+1, ']'); in inifile_read()
179 if (pos) { in inifile_read()
180 *pos = '\0'; in inifile_read()
184 ln->pos = php_stream_tell(dba->fp); in inifile_read()
192 pos = strchr(fline, '='); in inifile_read()
193 if (pos) { in inifile_read()
194 *pos = '\0'; in inifile_read()
203 ln->val.value = etrim(pos+1); in inifile_read()
[all …]
/PHP-7.2/ext/pdo_oci/tests/
H A Dpdo_oci_attr_server.phpt23 $pos = strpos($si, "Oracle");
24 if ($pos === 0) {
25 echo "Found 'Oracle' at position $pos as expected\n";
/PHP-7.2/ext/spl/
H A Dspl_observer.c85 HashPosition pos; member
237 intern->pos = HT_INVALID_IDX; in spl_object_storage_new_ex()
690 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in SPL_METHOD()
702 HashPosition pos; in SPL_METHOD() local
718 zend_hash_internal_pointer_reset_ex(&intern->storage, &pos); in SPL_METHOD()
730 zend_hash_move_forward_ex(&intern->storage, &pos); in SPL_METHOD()
1016 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in SPL_METHOD()
1042 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in SPL_METHOD()
1065 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in SPL_METHOD()
1107 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in SPL_METHOD()
[all …]
/PHP-7.2/ext/intl/breakiterator/
H A Dcodepointiterator_internal.cpp154 int32_t pos = (int32_t)utext_nativeLength(this->fText); in last() local
155 UTEXT_SETNATIVEINDEX(this->fText, pos); in last()
158 return pos; in last()
281 int64_t pos = utext_getNativeIndex(this->fText); in refreshInputText() local
287 utext_setNativeIndex(this->fText, pos); in refreshInputText()
288 if (utext_getNativeIndex(fText) != pos) { in refreshInputText()
/PHP-7.2/ext/mbstring/
H A Dphp_mbregex.c828 OnigUChar *pos; in _php_mb_regex_ereg_replace_exec() local
924 pos = (OnigUChar *)string; in _php_mb_regex_ereg_replace_exec()
1033 if (pos < string_lim) { in _php_mb_regex_ereg_replace_exec()
1036 pos++; in _php_mb_regex_ereg_replace_exec()
1040 if (string_lim - pos > 0) { in _php_mb_regex_ereg_replace_exec()
1041 smart_str_appendl(&out_buf, (char *)pos, string_lim - pos); in _php_mb_regex_ereg_replace_exec()
1100 OnigUChar *pos, *chunk_pos; in PHP_FUNCTION() local
1149 pos++; in PHP_FUNCTION()
1257 pos = MBREX(search_pos); in _php_mb_regex_ereg_search_exec()
1316 if (pos <= end) { in _php_mb_regex_ereg_search_exec()
[all …]
/PHP-7.2/ext/dba/libcdb/
H A Dcdb_make.c48 uint32 newpos = c->pos + len; in cdb_posplus()
53 c->pos = newpos; in cdb_posplus()
66 c->pos = sizeof(c->final); in cdb_make_start()
67 if (php_stream_seek(f, c->pos, SEEK_SET) == -1) { in cdb_make_start()
90 head->hp[head->num].p = c->pos; in cdb_make_addend()
196 uint32_pack(c->final + 8 * i,c->pos); in cdb_make_finish()
/PHP-7.2/ext/mbstring/tests/
H A Dmb_ereg_search_setpos.phpt19 foreach($positions as $pos) {
20 echo("\n* Position: $pos :\n");
21 var_dump(mb_ereg_search_setpos($pos));
/PHP-7.2/sapi/phpdbg/
H A Dphpdbg_cmd.c31 size_t pos = 0; in ZEND_EXTERN_MODULE_GLOBALS() local
35 pos += command->parent->name_len; in ZEND_EXTERN_MODULE_GLOBALS()
36 memcpy(&buffer[pos], " ", sizeof(" ")-1); in ZEND_EXTERN_MODULE_GLOBALS()
37 pos += (sizeof(" ")-1); in ZEND_EXTERN_MODULE_GLOBALS()
41 pos += command->name_len; in ZEND_EXTERN_MODULE_GLOBALS()
42 buffer[pos] = 0; in ZEND_EXTERN_MODULE_GLOBALS()
628 size_t pos = 0; in phpdbg_stack_resolve() local
637 pos += matched[it]->name_len; in phpdbg_stack_resolve()
639 memcpy(&list[pos], ", ", sizeof(", ") - 1); in phpdbg_stack_resolve()
640 pos += (sizeof(", ") - 1); in phpdbg_stack_resolve()
[all …]
/PHP-7.2/ext/gd/libgd/
H A Dwbmp.c153 int row, col, byte, pel, pos; in readwbmp() local
208 pos = 0; in readwbmp()
221 wbmp->bitmap[pos] = WBMP_WHITE; in readwbmp()
225 wbmp->bitmap[pos] = WBMP_BLACK; in readwbmp()
227 pos++; in readwbmp()
/PHP-7.2/ext/opcache/
H A Dshared_alloc_mmap.c58 shared_segment->pos = 0; in create_segments()
71 shared_segment->pos = 0; in create_segments()
/PHP-7.2/ext/soap/tests/
H A Dbug73037.phpt109 $pos = strpos($out, "<env:Text>");
110 if (false === $pos) {
114 $pos0 = $pos + strlen("<env:Text>");
115 $pos = strpos($out, "</env:Text>");
116 if (false === $pos) {
120 $len = $pos - $pos0;
/PHP-7.2/ext/com_dotnet/
H A Dcom_wrapper.c448 HashPosition pos; in generate_dispids() local
463 zend_hash_internal_pointer_reset_ex(Z_OBJPROP(disp->object), &pos); in generate_dispids()
466 &pid, &pos))) { in generate_dispids()
475 zend_hash_move_forward_ex(Z_OBJPROP(disp->object), &pos); in generate_dispids()
500 &name, &pid, &pos))) { in generate_dispids()
510 zend_hash_move_forward_ex(&Z_OBJCE(disp->object)->function_table, &pos); in generate_dispids()
588 HashPosition pos; in php_com_wrapper_export_as_sink() local
602 zend_hash_internal_pointer_reset_ex(id_to_name, &pos); in php_com_wrapper_export_as_sink()
604 zend_hash_get_current_key_ex(id_to_name, &name, &pid, &pos))) { in php_com_wrapper_export_as_sink()
608 ntmp = zend_hash_get_current_data_ex(id_to_name, &pos); in php_com_wrapper_export_as_sink()
[all …]
/PHP-7.2/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_memory_device.h42 int pos; member
49 int pos; member
/PHP-7.2/ext/mbstring/libmbfl/tests/
H A Dstrwidth.c60 if (dev.pos >= dev.length) { in main()
70 dev.buffer[dev.pos++] = (unsigned char)c; in main()
/PHP-7.2/ext/readline/
H A Dreadline_cli.c587 size_t size = 4096, pos = 0, len; in readline_shell_run() local
625 if (!pos && !*line) { in readline_shell_run()
650 if (pos + len + 2 > size) { in readline_shell_run()
651 size = pos + len + 2; in readline_shell_run()
654 memcpy(&code[pos], line, len); in readline_shell_run()
655 pos += len; in readline_shell_run()
656 code[pos] = '\n'; in readline_shell_run()
657 code[++pos] = '\0'; in readline_shell_run()
667 if (!cli_is_valid_code(code, pos, &prompt)) { in readline_shell_run()
681 zend_eval_stringl(code, pos, NULL, "php shell code"); in readline_shell_run()
[all …]
/PHP-7.2/ext/spl/tests/
H A Darray_014.phpt32 $pos = 0;
35 $it->seek($pos++);
/PHP-7.2/ext/enchant/
H A Denchant.c540 int pos; in PHP_FUNCTION() local
555 pos = pbroker->dictcnt++; in PHP_FUNCTION()
560 pos = 0; in PHP_FUNCTION()
563 dict = pbroker->dict[pos] = (enchant_dict *)emalloc(sizeof(enchant_dict)); in PHP_FUNCTION()
564 dict->id = pos; in PHP_FUNCTION()
567 pbroker->dict[pos] = dict; in PHP_FUNCTION()
588 int pos; in PHP_FUNCTION() local
602 pos = pbroker->dictcnt++; in PHP_FUNCTION()
607 pos = 0; in PHP_FUNCTION()
611 dict->id = pos; in PHP_FUNCTION()
[all …]

Completed in 61 milliseconds

1234567