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

1234567

/PHP_5_4/TSRM/
H A Dreaddir.h22 off_t d_off; /* offset to this dirent */
31 short offset; /* offset into directory */ member in struct:__anon3
/PHP_5_4/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_5_4/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_5_4/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_5_4/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_5_4/win32/
H A Dflock.c59 OVERLAPPED offset = local
64 UnlockFileEx(hdl, 0, low, high, &offset);
69 0, low, high, &offset))
74 0, low, high, &offset))
H A Dreaddir.c51 dp->offset = 0;
76 if (dp->offset != 0) {
82 dp->offset++;
87 dp->dent.d_off = dp->offset;
99 if (dp->offset != 0) {
106 dp->offset++;
111 dp->dent.d_off = dp->offset;
146 dp->offset = 0;
/PHP_5_4/ext/mbstring/libmbfl/tests/
H A Dstrcut.c31 int offset, length; local
36 fprintf(stderr, "Usage: %s lang encoding offset length\n", argv[0]);
53 offset = strtol(argv[3], NULL, 10);
55 printf("Invalid offset: %s\n", argv[3]);
103 if (mbfl_strcut(&string, &result, offset, length)) {
/PHP_5_4/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_5_4/ext/intl/grapheme/
H A Dgrapheme_util.h28 int grapheme_strrpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int f_ignore_case TSRMLS_DC);
30 int grapheme_strpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int *puchar_pos, int f_ignore_case, int last TSRMLS_DC);
40 int grapheme_get_haystack_offset(UBreakIterator* bi, int32_t offset);
42 int32_t grapheme_strrpos_ascii(unsigned char *haystack, int32_t haystack_len, unsigned char *needle, int32_t needle_len, int32_t offset);
46 /* OUTSIDE_STRING: check if (possibly negative) long offset is outside the string with int32_t length */
47 #define OUTSIDE_STRING(offset, max_len) ( offset <= INT32_MIN || offset > INT32_MAX || (offset < 0 ? -offset > (lon
[all...]
H A Dgrapheme_util.c131 int grapheme_strpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int32_t *puchar_pos, int f_ignore_case, int last TSRMLS_DC) argument
154 /* get a pointer to the haystack taking into account the offset */
174 if(offset != 0) {
175 offset_pos = grapheme_get_haystack_offset(bi, offset);
178 STRPOS_CHECK_STATUS(status, "Invalid search offset");
182 STRPOS_CHECK_STATUS(status, "Invalid search offset");
189 /* last one is beyound our start offset */
295 /* {{{ grapheme_get_haystack_offset - bump the haystack pointer based on the grapheme count offset */
296 int grapheme_get_haystack_offset(UBreakIterator* bi, int32_t offset) argument
302 if ( 0 == offset ) {
337 grapheme_strrpos_ascii(unsigned char *haystack, int32_t haystack_len, unsigned char *needle, int32_t needle_len, int32_t offset) argument
[all...]
/PHP_5_4/ext/zip/lib/
H A Dzip_file_get_offset.c2 zip_file_get_offset.c -- get offset of file data in archive.
50 Returns the offset of the file data for entry ze.
59 unsigned int offset;
61 offset = za->cdir->entry[idx].offset;
63 if (fseeko(za->zp, offset, SEEK_SET) != 0) {
71 offset += LENTRYSIZE + de.filename_len + de.extrafield_len;
75 return offset;
57 unsigned int offset; local
/PHP_5_4/ext/intl/resourcebundle/
H A Dresourcebundle_class.c163 static void resourcebundle_array_fetch(zval *object, zval *offset, zval *return_value, int fallback TSRMLS_DC) argument
175 if(Z_TYPE_P(offset) == IS_LONG) {
177 meindex = Z_LVAL_P(offset);
179 } else if(Z_TYPE_P(offset) == IS_STRING) {
180 mekey = Z_STRVAL_P(offset);
181 mekeylen = Z_STRLEN_P(offset);
219 zval *resourcebundle_array_get(zval *object, zval *offset, int type TSRMLS_DC) argument
223 if(offset == NULL) {
228 resourcebundle_array_fetch(object, offset, retval, 1 TSRMLS_CC);
248 zval * offset; local
[all...]
/PHP_5_4/ext/spl/
H A Dspl_engine.c46 PHPAPI long spl_offset_convert_to_long(zval *offset TSRMLS_DC) /* {{{ */
48 switch (Z_TYPE_P(offset)) {
50 ZEND_HANDLE_NUMERIC(Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, idx);
53 return (long)Z_DVAL_P(offset);
57 return Z_LVAL_P(offset);
66 * c-basic-offset: 4
H A Dspl_fixedarray.c344 static inline zval **spl_fixedarray_object_read_dimension_helper(spl_fixedarray_object *intern, zval *offset TSRMLS_DC) /* {{{ */
350 if (!offset) {
355 if (Z_TYPE_P(offset) != IS_LONG) {
356 index = spl_offset_convert_to_long(offset TSRMLS_CC);
358 index = Z_LVAL_P(offset);
372 static zval *spl_fixedarray_object_read_dimension(zval *object, zval *offset, int type TSRMLS_DC) /* {{{ */ argument
381 if (!offset) {
382 ALLOC_INIT_ZVAL(offset);
384 SEPARATE_ARG_IF_REF(offset);
386 zend_call_method_with_1_params(&object, intern->std.ce, &intern->fptr_offset_get, "offsetGet", &rv, offset);
405 spl_fixedarray_object_write_dimension_helper(spl_fixedarray_object *intern, zval *offset, zval *value TSRMLS_DC) argument
434 spl_fixedarray_object_write_dimension(zval *object, zval *offset, zval *value TSRMLS_DC) argument
497 spl_fixedarray_object_has_dimension_helper(spl_fixedarray_object *intern, zval *offset, int check_empty TSRMLS_DC) argument
528 spl_fixedarray_object_has_dimension(zval *object, zval *offset, int check_empty TSRMLS_DC) argument
[all...]
/PHP_5_4/ext/standard/
H A Dflock_compat.c126 OVERLAPPED offset =
131 UnlockFileEx(hdl, 0, low, high, &offset);
136 0, low, high, &offset))
141 0, low, high, &offset))
235 * c-basic-offset: 4
H A Dmicrotime.c71 timelib_time_offset *offset; local
73 offset = timelib_get_time_zone_info(tp.tv_sec, get_timezone_info(TSRMLS_C));
79 add_assoc_long(return_value, "minuteswest", -offset->offset / SEC_IN_MIN);
80 add_assoc_long(return_value, "dsttime", offset->is_dst);
82 timelib_time_offset_dtor(offset);
162 * c-basic-offset: 4
/PHP_5_4/main/streams/
H A Dmmap.c25 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_operation_t mode, size_t *mapped_len TSRMLS_DC) 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:__anon309
70 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_operation_t mode, size_t *mapped_len TSRMLS_DC);
71 #define php_stream_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((stream), (offset), (length), (mode), (mapped_len) TSRMLS_CC)
84 * c-basic-offset: 4
/PHP_5_4/Zend/
H A Dzend_alloc.h58 ZEND_API void *_safe_emalloc(size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC;
59 ZEND_API void *_safe_malloc(size_t nmemb, size_t size, size_t offset) ZEND_ATTRIBUTE_MALLOC;
63 ZEND_API void *_safe_erealloc(void *ptr, size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
64 ZEND_API void *_safe_realloc(void *ptr, size_t nmemb, size_t size, size_t offset);
71 #define safe_emalloc(nmemb, size, offset) _safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
75 #define safe_erealloc(ptr, nmemb, size, offset) _safe_erealloc((ptr), (nmemb), (size), (offset) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
83 #define safe_emalloc_rel(nmemb, size, offset) _safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LINE_RELAY_C
[all...]
H A Dzend_qsort.c66 uint offset; local
76 offset = (end - begin) >> 1;
77 _zend_qsort_swap(begin, begin + (offset - (offset % siz)), siz);
122 * c-basic-offset: 4
/PHP_5_4/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)
169 /* {{{ proto string dom_characterdata_substring_data(int offset, int count);
179 long offset, count; local
183 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oll", &id, dom_characterdata_class_entry, &offset, &count) == FAILURE) {
196 if (offset < 0 || count < 0 || offset > length) {
202 if ((offset
262 long offset; local
309 long offset, count; local
365 long offset, count; local
[all...]
H A Dtext.c33 ZEND_ARG_INFO(0, offset)
141 /* {{{ proto DOMText dom_text_split_text(int offset);
153 long offset; local
158 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", &id, dom_text_class_entry, &offset) == FAILURE) {
173 if (offset > length || offset < 0) {
178 first = xmlUTF8Strndup(cur, offset);
179 second = xmlUTF8Strsub(cur, offset, length - offset);
241 * c-basic-offset
[all...]
/PHP_5_4/ext/fileinfo/libmagic/
H A Dsoftmagic.c121 const unsigned char *s, size_t nbytes, size_t offset, int mode, int text,
155 ms->offset = m->offset;
159 switch (mget(ms, s, m, nbytes, offset, cont_level, mode, text,
233 ms->offset = m->offset;
235 ms->offset +=
246 switch (mget(ms, s, m, nbytes, offset, cont_level, mode,
388 t = ms->offset + sizeof(char);
410 t = ms->offset
120 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, int recursion_level, int *printed_something, int *need_separator, int *returnval) argument
996 mdebug(uint32_t offset, const char *str, size_t len) argument
1005 mcopy(struct magic_set *ms, union VALUETYPE *p, int type, int indir, const unsigned char *s, uint32_t offset, size_t nbytes, size_t linecnt) argument
1120 uint32_t soffset, offset = ms->offset; local
2099 zval **match, **offset; local
[all...]

Completed in 55 milliseconds

1234567