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

12

/PHP_TRUNK/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 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
H A Dmultipleiterator.inc33 /** keys are created from sub iterators position */
/PHP_TRUNK/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_TRUNK/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_TRUNK/ext/spl/
H A Dspl.php823 /** @param $position offset to seek to
824 * @throw OutOfBoundsException if $position is invalid
826 function seek($position) {/**/}
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_bp.h141 PHPDBG_API phpdbg_breakbase_t *phpdbg_find_breakbase_ex(zend_ulong id, HashTable ***table, HashPosition *position TSRMLS_DC); /* }}} */
H A Dphpdbg_frame.c169 HashPosition position; local
180 zend_hash_internal_pointer_reset_ex(Z_ARRVAL(zbacktrace), &position); local
181 zend_hash_get_current_data_ex(Z_ARRVAL(zbacktrace), (void**)&tmp, &position); local
185 zend_hash_move_forward_ex(Z_ARRVAL(zbacktrace), &position); local
188 (void**)&tmp, &position) == FAILURE) {
H A Dphpdbg_info.c284 HashPosition position; local
290 for (zend_hash_internal_pointer_reset_ex(EG(class_table), &position);
291 zend_hash_get_current_data_ex(EG(class_table), (void**)&ce, &position) == SUCCESS;
292 zend_hash_move_forward_ex(EG(class_table), &position)) {
303 for (zend_hash_internal_pointer_reset_ex(&classes, &position);
304 zend_hash_get_current_data_ex(&classes, (void**)&ce, &position) == SUCCESS;
305 zend_hash_move_forward_ex(&classes, &position)) {
337 HashPosition position; local
343 for (zend_hash_internal_pointer_reset_ex(EG(function_table), &position);
344 zend_hash_get_current_data_ex(EG(function_table), (void**)&zf, &position)
[all...]
H A Dphpdbg_print.c170 HashPosition position; local
173 for (zend_hash_internal_pointer_reset_ex(&(*ce)->function_table, &position);
174 zend_hash_get_current_data_ex(&(*ce)->function_table, (void**) &method, &position) == SUCCESS;
175 zend_hash_move_forward_ex(&(*ce)->function_table, &position)) {
H A Dphpdbg_watch.c170 HashPosition position; local
174 for (zend_hash_internal_pointer_reset_ex(ht, &position);
175 zend_hash_get_current_data_ex(ht, (void **)&zv, &position) == SUCCESS;
176 zend_hash_move_forward_ex(ht, &position)) {
183 zend_hash_get_current_key_zval_ex(ht, &key, &position);
224 HashPosition position; local
233 for (zend_hash_internal_pointer_reset_ex(ht, &position);
234 zend_hash_get_current_data_ex(ht, (void **)&zv, &position) == SUCCESS;
235 zend_hash_move_forward_ex(ht, &position)) {
236 zend_hash_get_current_key_zval_ex(ht, &key, &position);
331 HashPosition position; local
764 HashPosition position; local
[all...]
H A Dphpdbg_bp.c96 HashPosition position[2]; local
99 for (zend_hash_internal_pointer_reset_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], &position[0]);
100 zend_hash_get_current_data_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], (void**)&table, &position[0]) == SUCCESS;
101 zend_hash_move_forward_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], &position[0])) {
104 for (zend_hash_internal_pointer_reset_ex((*table), &position[1]);
105 zend_hash_get_current_data_ex((*table), (void**)&brake, &position[1]) == SUCCESS;
106 zend_hash_move_forward_ex((*table), &position[1])) {
115 HashPosition position[2]; local
124 for (zend_hash_internal_pointer_reset_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], &position[0]);
125 zend_hash_get_current_data_ex(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP], (void**)&table, &position[
401 HashPosition position; local
966 HashPosition position; local
1083 HashPosition position; local
1322 HashPosition position; local
1348 HashPosition position; local
1363 HashPosition position[2]; local
1392 HashPosition position[2]; local
1414 HashPosition position; local
1442 HashPosition position[3]; local
1481 HashPosition position[2]; local
1511 HashPosition position[2]; local
1540 HashPosition position; local
1616 HashPosition position; local
[all...]
/PHP_TRUNK/ext/intl/dateformat/
H A Ddateformat_class.c115 ZEND_ARG_INFO(1, position)
/PHP_TRUNK/ext/intl/formatter/
H A Dformatter_class.c108 ZEND_ARG_INFO(1, position)
114 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
72 position = (int32_t)Z_LVAL_P( zposition );
73 position_p = &position;
110 ZVAL_LONG(zposition, position);
121 /* {{{ proto double NumberFormatter::parseCurrency( string $str, string $&currency[, int $&position] )
123 /* {{{ proto double numfmt_parse_currency( NumberFormatter $nf, string $str, string $&currency[, int $&position] )
137 int32_t position = 0; local
161 position
[all...]
/PHP_TRUNK/ext/phar/
H A Dstream.c375 /* use our proxy position */
376 php_stream_seek(data->fp, data->position + data->zero, SEEK_SET);
378 got = php_stream_read(data->fp, buf, MIN(count, entry->uncompressed_filesize - data->position));
379 data->position = php_stream_tell(data->fp) - data->zero;
380 stream->eof = (data->position == (zend_off_t) entry->uncompressed_filesize);
407 temp = data->zero + data->position + offset;
425 data->position = *newoffset;
437 php_stream_seek(data->fp, data->position, SEEK_SET);
442 data->position = php_stream_tell(data->fp);
443 if (data->position > (zend_off_
[all...]
/PHP_TRUNK/ext/standard/
H A Dphp_fopen_wrapper.c68 zend_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;
H A Dstreamsfuncs.c413 off_t position; local
415 position = php_stream_tell(stream);
416 if (position >= 0 && desiredpos > position) {
418 seek_res = php_stream_seek(stream, desiredpos - position, SEEK_CUR);
419 } else if (desiredpos < position) {
420 /* desired position before position or error on tell */
426 "Failed to seek to position %pd in the stream", desiredpos);
461 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to seek to position " ZEND_LONG_FM
[all...]
/PHP_TRUNK/main/streams/
H A Dcast.c79 static PHP_FPOS_T stream_cookie_seeker(void *cookie, zend_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, (zend_off_t)*position, whence);
119 if (*position == -1) {
125 static int stream_cookie_seeker(void *cookie, zend_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.c771 stream->position += didread;
955 stream->position += cpysz;
1111 stream->position += delim_len;
1123 * current stream->position. This means invalidating the read buffer and then
1128 stream->ops->seek(stream, stream->position, SEEK_SET, &stream->position TSRMLS_CC);
1148 stream->position += justwrote;
1274 return stream->position;
1290 stream->position += offset;
1296 if (offset > stream->position
[all...]
/PHP_TRUNK/ext/date/lib/
H A Dparse_iso_intervals.re109 s->errors->warning_messages[s->errors->warning_count - 1].position = s->tok ? s->tok - s->str : 0;
118 s->errors->error_messages[s->errors->error_count - 1].position = s->tok ? s->tok - s->str : 0;
H A Dtimelib_structs.h170 int position; member in struct:timelib_error_message
/PHP_TRUNK/ext/mbstring/
H A Dphp_mbregex.c1389 Get search start position */
1396 /* {{{ proto bool mb_ereg_search_setpos(int position)
1397 Set search start position */
1400 zend_long position; local
1402 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &position) == FAILURE) {
1406 if (position < 0 || (!Z_ISUNDEF(MBREX(search_str)) && Z_TYPE(MBREX(search_str)) == IS_STRING && position >= Z_STRLEN(MBREX(search_str)))) {
1412 MBREX(search_pos) = position;
/PHP_TRUNK/ext/sqlite3/
H A Dsqlite3.c1048 size_t position; member in struct:__anon52
1063 if (sqlite3_stream->position + count >= sqlite3_stream->size) {
1064 count = sqlite3_stream->size - sqlite3_stream->position;
1068 if (sqlite3_blob_read(sqlite3_stream->blob, buf, count, sqlite3_stream->position) != SQLITE_OK) {
1071 sqlite3_stream->position += count;
1103 if (sqlite3_stream->position < (size_t)(-offset)) {
1104 sqlite3_stream->position = 0;
1108 sqlite3_stream->position = sqlite3_stream->position + offset;
1109 *newoffs = sqlite3_stream->position;
[all...]

Completed in 25 milliseconds

12