Searched refs:offset (Results 1 - 25 of 212) sorted by relevance

123456789

/PHP_TRUNK/ext/phar/tests/zip/files/
H A Dcorrupt_zipmaker.php.inc42 var $offset = 0;
164 private function getCentralEntry($compmethod, $mtime, $crc32, $complength, $uncomplength, $filename, $comment, $corrupt, &$offset, $fakecomp)
172 0x0000, $this->offset).
174 $offset = strlen($central);
180 0x0000, $this->offset).
182 $offset = strlen($central);
188 0x0000, $this->offset).
190 $offset = strlen($central);
196 0x0000, $this->offset).
198 $offset
[all...]
/PHP_TRUNK/ext/spl/internal/
H A Dlimititerator.inc18 * A class that starts iteration at a certain offset and only iterates over
27 private $offset;
34 * @param offset Offset to first element
37 function __construct(Iterator $it, $offset = 0, $count = -1)
39 if ($offset < 0) {
40 throw new exception('Parameter offset must be > 0');
46 $this->offset = $offset;
52 * @param position offset to seek to (relative to beginning not offset
[all...]
H A Dspldoublylinkedlist.inc193 /** @return whether a certain offset exists in the DLL
195 * @param $offset The offset
196 * @throw OutOfRangeException If the offset is either invalid or out of
199 public function offsetExists($offset)
201 if (!is_numeric($offset)) {
204 return array_key_exists($offset, $this->_llist);
208 /** @return the data at a certain offset in the DLL
210 * @param $offset The offset
[all...]
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_trace_mach.c85 size_t offset = ((uintptr_t) (addr) % fpm_pagesize); local
86 vm_offset_t base = (uintptr_t) (addr) - offset;
94 *data = * (long *) (local_page + offset);
/PHP_TRUNK/ext/intl/doc/
H A Dgrapheme_api.php33 * @param [int] $offset The optional offset parameter allows you to specify
38 function grapheme_strpos($haystack, $needle, $offset = 0) {}
45 * @param [int] $offset The optional offset parameter allows you to specify
50 function grapheme_stripos($haystack, $needle, $offset = 0) {}
57 * @param [int] $offset The optional offset parameter allows you to specify
62 function grapheme_strrpos($haystack, $needle, $offset = 0) {}
69 * @param [int] $offset Th
[all...]
/PHP_TRUNK/ext/intl/grapheme/
H A Dgrapheme_util.h28 zend_long grapheme_strrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset);
30 int32_t grapheme_strrpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset, int f_ignore_case);
31 int32_t grapheme_strpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset, int *puchar_pos, int f_ignore_case, int last);
39 int32_t grapheme_get_haystack_offset(UBreakIterator* bi, int32_t offset);
43 /* OUTSIDE_STRING: check if (possibly negative) long offset is outside the string with int32_t length */
44 #define OUTSIDE_STRING(offset, max_len) ( offset <= INT32_MIN || offset > INT32_MAX || (offset < 0 ? -offset > (zend_lon
[all...]
H A Dgrapheme_util.c133 int32_t grapheme_strpos_utf16(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset, int32_t *puchar_pos, int f_ignore_case, int last) argument
156 /* get a pointer to the haystack taking into account the offset */
176 if(offset != 0) {
177 offset_pos = grapheme_get_haystack_offset(bi, offset);
180 STRPOS_CHECK_STATUS(status, "Invalid search offset");
184 STRPOS_CHECK_STATUS(status, "Invalid search offset");
191 /* last one is beyound our start offset */
297 /* {{{ grapheme_get_haystack_offset - bump the haystack pointer based on the grapheme count offset */
298 int32_t grapheme_get_haystack_offset(UBreakIterator* bi, int32_t offset) argument
304 if ( 0 == offset ) {
339 grapheme_strrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset) argument
[all...]
/PHP_TRUNK/ext/xmlrpc/libxmlrpc/
H A Dbase64.c29 b->offset = 0;
35 b->offset++;
36 if (b->offset == b->length) {
39 b->ptr = b->data + b->offset;
47 b->offset = 0;
55 int offset = 0; local
81 offset++;
82 if (offset > length) {
106 if (!(b->offset % 72)) {
120 int offset local
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_engine.c43 PHPAPI zend_long spl_offset_convert_to_long(zval *offset) /* {{{ */ argument
47 switch (Z_TYPE_P(offset)) {
49 if (ZEND_HANDLE_NUMERIC(Z_STR_P(offset), idx)) {
54 return (zend_long)Z_DVAL_P(offset);
56 return Z_LVAL_P(offset);
62 return Z_RES_HANDLE_P(offset);
71 * c-basic-offset: 4
H A Dspl_fixedarray.c327 static inline zval *spl_fixedarray_object_read_dimension_helper(spl_fixedarray_object *intern, zval *offset) /* {{{ */ argument
333 if (!offset) {
338 if (Z_TYPE_P(offset) != IS_LONG) {
339 index = spl_offset_convert_to_long(offset);
341 index = Z_LVAL_P(offset);
355 static zval *spl_fixedarray_object_read_dimension(zval *object, zval *offset, int type, zval *rv) /* {{{ */ argument
363 if (!offset) {
365 offset = &tmp;
367 SEPARATE_ARG_IF_REF(offset);
369 zend_call_method_with_1_params(object, intern->std.ce, &intern->fptr_offset_get, "offsetGet", rv, offset);
381 spl_fixedarray_object_write_dimension_helper(spl_fixedarray_object *intern, zval *offset, zval *value) argument
410 spl_fixedarray_object_write_dimension(zval *object, zval *offset, zval *value) argument
435 spl_fixedarray_object_unset_dimension_helper(spl_fixedarray_object *intern, zval *offset) argument
455 spl_fixedarray_object_unset_dimension(zval *object, zval *offset) argument
473 spl_fixedarray_object_has_dimension_helper(spl_fixedarray_object *intern, zval *offset, int check_empty) argument
504 spl_fixedarray_object_has_dimension(zval *object, zval *offset, int check_empty) argument
[all...]
/PHP_TRUNK/ext/dom/
H A Dcharacterdata.c33 ZEND_ARG_INFO(0, offset)
42 ZEND_ARG_INFO(0, offset)
47 ZEND_ARG_INFO(0, offset)
52 ZEND_ARG_INFO(0, offset)
149 /* {{{ proto string dom_characterdata_substring_data(int offset, int count);
159 zend_long offset, count; local
163 if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "Oll", &id, dom_characterdata_class_entry, &offset, &count) == FAILURE) {
176 if (offset < 0 || count < 0 || offset > length) {
182 if ((offset
242 zend_long offset; local
290 zend_long offset, count; local
346 zend_long offset, count; local
[all...]
H A Dtext.c33 ZEND_ARG_INFO(0, offset)
136 /* {{{ proto DOMText dom_text_split_text(int offset);
148 zend_long offset; local
152 if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "Ol", &id, dom_text_class_entry, &offset) == FAILURE) {
167 if (offset > length || offset < 0) {
172 first = xmlUTF8Strndup(cur, offset);
173 second = xmlUTF8Strsub(cur, offset, length - offset);
235 * c-basic-offset
[all...]
/PHP_TRUNK/main/streams/
H A Dmmap.c25 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_access_t mode, size_t *mapped_len) argument
29 range.offset = offset;
71 * c-basic-offset: 4
H A Dphp_stream_mmap.h33 /* Request a range and offset to be mapped;
49 /* requested offset and length.
51 size_t offset; member in struct:__anon3
70 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_access_t mode, size_t *mapped_len);
71 #define php_stream_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((stream), (offset), (length), (mode), (mapped_len))
84 * c-basic-offset: 4
/PHP_TRUNK/Zend/
H A Dzend_multiply.h123 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
132 "rm"(offset));
144 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
161 "rm"(offset));
174 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
183 "0"(offset),
196 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
205 "r"(offset));
217 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
229 "r"(offset));
241 zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
255 zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
[all...]
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dsoftmagic.c152 const unsigned char *s, size_t nbytes, size_t offset, int mode, int text,
186 ms->offset = m->offset;
190 switch (mget(ms, s, m, nbytes, offset, cont_level, mode, text,
266 ms->offset = m->offset;
268 ms->offset +=
279 switch (mget(ms, s, m, nbytes, offset, cont_level, mode,
430 t = ms->offset + sizeof(char);
452 t = ms->offset
151 match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, const unsigned char *s, size_t nbytes, size_t offset, int mode, int text, int flip, uint16_t indir_level, uint16_t *name_count, int *printed_something, int *need_separator, int *returnval) argument
1062 mdebug(uint32_t offset, const char *str, size_t len) argument
1071 mcopy(struct magic_set *ms, union VALUETYPE *p, int type, int indir, const unsigned char *s, uint32_t offset, size_t nbytes, struct magic *m) argument
1204 uint32_t offset = ms->offset; local
2048 zval *match, *offset; local
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Doptimize_temp_vars_5.c44 int offset = op_array->last_var; local
67 start_of_T[VAR_NUM(ZEND_RESULT(opline).var) - offset] = opline;
81 currT = VAR_NUM(ZEND_OP1(opline).var) - offset;
95 ZEND_OP1(opline).var = NUM_VAR(var + offset);
106 ZEND_OP1(opline).var = NUM_VAR(map_T[currT] + offset);
118 currT = VAR_NUM(ZEND_OP2(opline).var) - offset;
124 ZEND_OP2(opline).var = NUM_VAR(map_T[currT] + offset);
130 currT = VAR_NUM(opline->extended_value) - offset;
136 opline->extended_value = NUM_VAR(map_T[currT] + offset);
143 currT = VAR_NUM(ZEND_OP2(opline + 1).var) - offset;
[all...]
/PHP_TRUNK/ext/zip/lib/
H A Dzip_buffer.c64 return buffer->ok && buffer->offset == buffer->size;
73 if (!buffer->ok || buffer->offset + length < length || buffer->offset + length > buffer->size) {
78 data = buffer->data + buffer->offset;
79 buffer->offset += length;
140 return buffer->ok ? buffer->size - buffer->offset : 0;
166 buffer->offset = 0;
195 return buffer->ok ? buffer->offset : 0;
292 _zip_buffer_set_offset(zip_buffer_t *buffer, zip_uint64_t offset) argument
294 if (offset > buffe
[all...]
H A Dzip_file_get_offset.c2 zip_file_get_offset.c -- get offset of file data in archive.
46 Returns the offset of the file data for entry ze.
54 zip_uint64_t offset; local
57 offset = za->entry[idx].orig->offset;
59 if (zip_source_seek(za->src, (zip_int64_t)offset, SEEK_SET) < 0) {
68 if (offset+(zip_uint32_t)size > ZIP_INT64_MAX) {
73 return offset + (zip_uint32_t)size;
H A Dzip_source_buffer.c51 zip_uint64_t offset; /* current offset */ member in struct:buffer
153 ctx->in->offset = 0;
213 if (ctx->in->offset > ZIP_INT64_MAX) {
217 return (zip_int64_t)ctx->in->offset;
221 if (ctx->out->offset > ZIP_INT64_MAX) {
225 return (zip_int64_t)ctx->out->offset;
270 buffer->offset = 0;
334 length = ZIP_MIN(length, buffer->size - buffer->offset);
343 i = buffer->offset / buffe
[all...]
H A Dzip_source_seek.c2 zip_source_seek.c -- seek to offset
39 zip_source_seek(zip_source_t *src, zip_int64_t offset, int whence) argument
51 args.offset = offset;
59 zip_source_seek_compute_offset(zip_uint64_t offset, zip_uint64_t length, void *data, zip_uint64_t data_length, zip_error_t *error) argument
70 new_offset = (zip_int64_t)offset + args->offset;
74 new_offset = (zip_int64_t)length + args->offset;
78 new_offset = args->offset;
H A Dzip_source_seek_write.c2 zip_source_seek_write.c -- seek to offset for writing
39 zip_source_seek_write(zip_source_t *src, zip_int64_t offset, int whence) argument
48 args.offset = offset;
H A Dzip_source_window.c43 zip_uint64_t offset; member in struct:window
149 ctx->offset = ctx->start;
153 if (len > ctx->end - ctx->offset)
154 len = ctx->end - ctx->offset;
160 if (zip_source_seek(src, (zip_int64_t)ctx->offset, SEEK_SET) < 0) {
171 ctx->offset += (zip_uint64_t)ret;
174 if (ctx->offset < ctx->end) {
183 zip_int64_t new_offset = zip_source_seek_compute_offset(ctx->offset - ctx->start, ctx->end - ctx->start, data, len, &ctx->error);
189 ctx->offset = (zip_uint64_t)new_offset + ctx->start;
209 return (zip_int64_t)(ctx->offset
[all...]
/PHP_TRUNK/ext/standard/
H A Dmicrotime.c72 timelib_time_offset *offset; local
74 offset = timelib_get_time_zone_info(tp.tv_sec, get_timezone_info());
80 add_assoc_long(return_value, "minuteswest", -offset->offset / SEC_IN_MIN);
81 add_assoc_long(return_value, "dsttime", offset->is_dst);
83 timelib_time_offset_dtor(offset);
169 * c-basic-offset: 4
/PHP_TRUNK/win32/
H A Dreaddir.c50 dp->offset = 0;
75 if (dp->offset != 0) {
81 dp->offset++;
86 dp->dent.d_off = dp->offset;
98 if (dp->offset != 0) {
105 dp->offset++;
110 dp->dent.d_off = dp->offset;
145 dp->offset = 0;
173 * c-basic-offset: 4

Completed in 71 milliseconds

123456789