Searched refs:position (Results 1 - 25 of 48) sorted by relevance

12

/PHP_5_6/ext/spl/internal/
H A Dlimititerator.inc51 /** Seek to specified position
52 * @param position offset to seek to (relative to beginning not offset
54 * @throw exception when position is invalid
56 function seek($position) {
57 if ($position < $this->offset) {
58 throw new exception('Cannot seek to '.$position.' which is below offset '.$this->offset);
60 if ($position > $this->offset + $this->count && $this->count != -1) {
61 throw new exception('Cannot seek to '.$position.' which is behind offset '.$this->offset.' plus count '.$this->count);
64 $this->it->seek($position);
65 $this->pos = $position;
[all...]
H A Dmultipleiterator.inc33 /** keys are created from sub iterators position */
H A Dseekableiterator.inc23 /** Seek to an absolute position
25 * \param $index position to seek to
29 * the given position. Typically this exception should be of type
34 $position = 0;
35 while($position < $index && $this->valid()) {
37 $position++;
40 throw new OutOfBoundsException('Invalid seek position');
H A Dsplfileobject.inc133 * @return current file position
141 * @param pos new file position
/PHP_5_6/ext/sqlite3/tests/
H A Dstream_test.inc5 private $position;
11 $this->position = 0;
17 $ret = substr(self::$string, $this->position, $count);
18 $this->position += strlen($ret);
34 return $this->position;
39 return ($this->position >= self::$string_length);
/PHP_5_6/ext/intl/doc/
H A Dformatter_api.php191 * @param [integer] $position On input, the position to start parsing, default is 0;
196 public function parse($string, $type, &$position) {}
216 * @param [integer] $position On input, the position within text to match, default is 0;
217 * on output, the position after the last matched character;
221 public function parseCurrency($string, &$currency, &$position) {}
363 * @param [integer] $position String position after the end of parsed data.
366 function numfmt_parse($formatter, $string, $type, &$position) {}
[all...]
/PHP_5_6/ext/intl/formatter/
H A Dformatter_class.c118 ZEND_ARG_INFO(1, position)
124 ZEND_ARG_INFO(1, position)
H A Dformatter_parse.c32 /* {{{ proto mixed NumberFormatter::parse( string $str[, int $type, int &$position ])
34 /* {{{ proto mixed numfmt_parse( NumberFormatter $nf, string $str[, int $type, int &$position ])
44 int32_t val32, position = 0; local
71 position = (int32_t)Z_LVAL_P( zposition );
72 position_p = &position;
109 ZVAL_LONG(zposition, position);
120 /* {{{ proto double NumberFormatter::parseCurrency( string $str, string $&currency[, int $&position] )
122 /* {{{ proto double numfmt_parse_currency( NumberFormatter $nf, string $str, string $&currency[, int $&position] )
136 int32_t position = 0; local
159 position
[all...]
/PHP_5_6/ext/phar/
H A Dstream.c376 /* use our proxy position */
377 php_stream_seek(data->fp, data->position + data->zero, SEEK_SET);
379 got = php_stream_read(data->fp, buf, MIN(count, entry->uncompressed_filesize - data->position));
380 data->position = php_stream_tell(data->fp) - data->zero;
381 stream->eof = (data->position == (off_t) entry->uncompressed_filesize);
408 temp = data->zero + data->position + offset;
426 data->position = *newoffset;
438 php_stream_seek(data->fp, data->position, SEEK_SET);
443 data->position = php_stream_tell(data->fp);
444 if (data->position > (off_
[all...]
/PHP_5_6/main/streams/
H A Dcast.c79 static PHP_FPOS_T stream_cookie_seeker(void *cookie, off_t position, int whence) argument
83 return (PHP_FPOS_T)php_stream_seek((php_stream *)cookie, position, whence);
113 static int stream_cookie_seeker(void *cookie, __off64_t *position, int whence) argument
117 *position = php_stream_seek((php_stream *)cookie, (off_t)*position, whence);
119 if (*position == -1) {
125 static int stream_cookie_seeker(void *cookie, off_t position, int whence) argument
129 return php_stream_seek((php_stream *)cookie, position, whence);
211 stream->ops->seek(stream, stream->position, SEEK_SET, &dummy TSRMLS_CC);
253 /* If the stream position i
[all...]
H A Dstreams.c767 stream->position += didread;
951 stream->position += cpysz;
1107 stream->position += delim_len;
1119 * current stream->position. This means invalidating the read buffer and then
1124 stream->ops->seek(stream, stream->position, SEEK_SET, &stream->position TSRMLS_CC);
1144 stream->position += justwrote;
1270 return stream->position;
1286 stream->position += offset;
1292 if (offset > stream->position
[all...]
/PHP_5_6/ext/date/lib/
H A Dtimelib_structs.h152 int position; member in struct:timelib_error_message
/PHP_5_6/ext/mbstring/
H A Dphp_mbregex.c1390 Get search start position */
1397 /* {{{ proto bool mb_ereg_search_setpos(int position)
1398 Set search start position */
1401 long position; local
1403 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &position) == FAILURE) {
1407 if (position < 0 || (MBREX(search_str) != NULL && Z_TYPE_P(MBREX(search_str)) == IS_STRING && position >= Z_STRLEN_P(MBREX(search_str)))) {
1413 MBREX(search_pos) = position;
/PHP_5_6/ext/standard/
H A Dstreamsfuncs.c423 off_t position; local
425 position = php_stream_tell(stream);
426 if (position >= 0 && desiredpos > position) {
428 seek_res = php_stream_seek(stream, desiredpos - position, SEEK_CUR);
429 } else if (desiredpos < position) {
430 /* desired position before position or error on tell */
436 "Failed to seek to position %ld in the stream", desiredpos);
473 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to seek to position
[all...]
H A Dphp_fopen_wrapper.c68 off_t position; member in struct:php_stream_input
83 if (!SG(post_read) && SG(read_post_bytes) < input->position + count) {
93 php_stream_seek(input->body, input->position, SEEK_SET);
99 input->position += read;
127 *newoffset = (input->body)->position;
/PHP_5_6/ext/sqlite3/
H A Dsqlite3.c1083 size_t position; member in struct:__anon1
1098 if (sqlite3_stream->position + count >= sqlite3_stream->size) {
1099 count = sqlite3_stream->size - sqlite3_stream->position;
1103 if (sqlite3_blob_read(sqlite3_stream->blob, buf, count, sqlite3_stream->position) != SQLITE_OK) {
1106 sqlite3_stream->position += count;
1138 if (sqlite3_stream->position < (size_t)(-offset)) {
1139 sqlite3_stream->position = 0;
1143 sqlite3_stream->position = sqlite3_stream->position + offset;
1144 *newoffs = sqlite3_stream->position;
[all...]
/PHP_5_6/sapi/phpdbg/
H A Dphpdbg_info.c396 HashPosition position; local
403 for (zend_hash_internal_pointer_reset_ex(EG(class_table), &position);
404 zend_hash_get_current_data_ex(EG(class_table), (void**)&ce, &position) == SUCCESS;
405 zend_hash_move_forward_ex(EG(class_table), &position)) {
417 for (zend_hash_internal_pointer_reset_ex(&classes, &position);
418 zend_hash_get_current_data_ex(&classes, (void**)&ce, &position) == SUCCESS;
419 zend_hash_move_forward_ex(&classes, &position)) {
449 HashPosition position; local
456 for (zend_hash_internal_pointer_reset_ex(EG(function_table), &position);
457 zend_hash_get_current_data_ex(EG(function_table), (void**)&zf, &position)
[all...]
H A Dphpdbg_print.c173 HashPosition position; local
176 for (zend_hash_internal_pointer_reset_ex(&(*ce)->function_table, &position);
177 zend_hash_get_current_data_ex(&(*ce)->function_table, (void**) &method, &position) == SUCCESS;
178 zend_hash_move_forward_ex(&(*ce)->function_table, &position)) {
H A Dphpdbg_utils.c449 HashPosition position; local
450 for (zend_hash_internal_pointer_reset_ex(parent, &position);
451 zend_hash_get_current_data_ex(parent, (void **)&zv, &position) == SUCCESS;
452 zend_hash_move_forward_ex(parent, &position)) {
458 zend_hash_get_current_key_zval_ex(parent, key, &position);
H A Dphpdbg_watch.c162 HashPosition position; local
166 for (zend_hash_internal_pointer_reset_ex(ht, &position);
167 zend_hash_get_current_data_ex(ht, (void **)&zv, &position) == SUCCESS;
168 zend_hash_move_forward_ex(ht, &position)) {
175 zend_hash_get_current_key_zval_ex(ht, &key, &position);
216 HashPosition position; local
225 for (zend_hash_internal_pointer_reset_ex(ht, &position);
226 zend_hash_get_current_data_ex(ht, (void **)&zv, &position) == SUCCESS;
227 zend_hash_move_forward_ex(ht, &position)) {
228 zend_hash_get_current_key_zval_ex(ht, &key, &position);
686 HashPosition position; local
[all...]
H A Dphpdbg_bp.h157 PHPDBG_API phpdbg_breakbase_t *phpdbg_find_breakbase_ex(zend_ulong id, HashTable ***table, HashPosition *position TSRMLS_DC); /* }}} */
H A Dphpdbg_webdata_transfer.c83 HashPosition position; local
89 for (zend_hash_internal_pointer_reset_ex(&module_registry, &position);
90 zend_hash_get_current_data_ex(&module_registry, (void**) &module, &position) == SUCCESS;
91 zend_hash_move_forward_ex(&module_registry, &position)) {
130 HashPosition position; local
134 for (zend_hash_internal_pointer_reset_ex(EG(ini_directives), &position);
135 zend_hash_get_current_data_ex(EG(ini_directives), (void**) &ini_entry, &position) == SUCCESS;
136 zend_hash_move_forward_ex(EG(ini_directives), &position)) {
160 HashPosition position; local
164 for (zend_hash_internal_pointer_reset_ex(EG(modified_ini_directives), &position);
[all...]
H A Dphpdbg_frame.c197 HashPosition position; local
219 zend_hash_internal_pointer_reset_ex(Z_ARRVAL(zbacktrace), &position); local
220 zend_hash_get_current_data_ex(Z_ARRVAL(zbacktrace), (void **) &tmp, &position); local
224 zend_hash_move_forward_ex(Z_ARRVAL(zbacktrace), &position); local
226 if (zend_hash_get_current_data_ex(Z_ARRVAL(zbacktrace), (void **) &tmp, &position) == FAILURE) {
H A Dphpdbg_bp.c95 HashPosition position[2]; local
98 for (zend_hash_internal_pointer_reset_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], &position[0]);
99 zend_hash_get_current_data_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], (void **) &table, &position[0]) == SUCCESS;
100 zend_hash_move_forward_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], &position[0])) {
103 for (zend_hash_internal_pointer_reset_ex((*table), &position[1]);
104 zend_hash_get_current_data_ex((*table), (void**)&brake, &position[1]) == SUCCESS;
105 zend_hash_move_forward_ex((*table), &position[1])) {
121 HashPosition position[2]; local
130 for (zend_hash_internal_pointer_reset_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], &position[0]);
131 zend_hash_get_current_data_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], (void **) &table, &position[
283 HashPosition position; local
333 HashPosition position; local
372 HashPosition position; local
384 zend_hash_move_forward_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_PENDING], &position); local
518 HashPosition position; local
1088 HashPosition position; local
1205 HashPosition position; local
1444 HashPosition position; local
1472 HashPosition position; local
1487 HashPosition position[2]; local
1516 HashPosition position[2]; local
1535 HashPosition position[2]; local
1557 HashPosition position; local
1585 HashPosition position[3]; local
1624 HashPosition position[2]; local
1654 HashPosition position[2]; local
1683 HashPosition position; local
1759 HashPosition position; local
[all...]
H A Dphpdbg_wait.c212 HashPosition position; local
221 for (zend_hash_internal_pointer_reset_ex(&module_registry, &position);
222 zend_hash_get_current_data_ex(&module_registry, (void **) &mod, &position) == SUCCESS;
223 zend_hash_move_forward_ex(&module_registry, &position)) {
311 HashPosition position; local
316 for (zend_hash_internal_pointer_reset_ex(Z_ARRVAL_PP(zvpp), &position);
317 zend_hash_get_current_data_ex(Z_ARRVAL_PP(zvpp), (void**) &ini_entry, &position) == SUCCESS;
318 zend_hash_move_forward_ex(Z_ARRVAL_PP(zvpp), &position)) {
319 zend_hash_get_current_key_zval_ex(Z_ARRVAL_PP(zvpp), &key, &position); local
339 HashPosition position; local
346 zend_hash_get_current_key_zval_ex(Z_ARRVAL_PP(zvpp), &key, &position); local
[all...]

Completed in 25 milliseconds

12