Searched refs:pos (Results 1 - 25 of 175) sorted by relevance

1234567

/PHP_TRUNK/ext/spl/internal/
H A Dlimititerator.inc29 private $pos;
48 $this->pos = 0;
65 $this->pos = $position;
67 while($this->pos < $position && $this->it->valid()) {
78 $this->pos = 0;
85 return ($this->count == -1 || $this->pos < $this->offset + $this->count)
105 $this->pos++;
112 return $this->pos;
/PHP_TRUNK/ext/gd/libgd/
H A Dgd_io_dp.c35 int pos; member in struct:dpStruct
146 return (dctx->dp->pos);
149 static int dynamicSeek (struct gdIOCtx *ctx, const int pos) argument
162 bytesNeeded = pos;
174 if (pos > dp->logicalSize) {
175 dp->logicalSize = pos;
178 dp->pos = pos;
191 dp->pos = 0;
236 remain = dp->logicalSize - dp->pos;
[all...]
H A Dgd_wbmp.c96 int x, y, pos; local
105 pos = 0;
109 wbmp->bitmap[pos] = WBMP_BLACK;
111 pos++;
133 int col, row, pos; local
150 pos = 0;
153 if (wbmp->bitmap[pos++] == WBMP_WHITE) {
/PHP_TRUNK/ext/mbstring/libmbfl/filters/
H A Dmbfilter_htmlent.c181 int pos, ent = 0; local
198 for (pos=3; pos<filter->status; pos++) {
199 int v = buffer[pos];
218 for (pos=2; pos<filter->status; pos++) {
219 int v = buffer[pos];
235 for (pos
290 int status, pos = 0; local
[all...]
/PHP_TRUNK/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_memory_device.c58 device->pos= 0;
97 device->pos = 0;
105 device->pos = 0;
112 if (device->pos > 0) {
113 device->pos--;
121 result->len = device->pos;
126 device->pos= 0;
143 if (device->pos >= device->length) {
157 device->buffer[device->pos++] = (unsigned char)c;
166 if ((device->pos
[all...]
H A Dmbfl_memory_device.h42 int pos; member in struct:_mbfl_memory_device
49 int pos; member in struct:_mbfl_wchar_device
/PHP_TRUNK/ext/mbstring/libmbfl/tests/
H A Dstrwidth.c60 if (dev.pos >= dev.length) {
70 dev.buffer[dev.pos++] = (unsigned char)c;
/PHP_TRUNK/ext/intl/grapheme/
H A Dgrapheme_util.c238 int ret_len, pos; local
249 pos = 0;
251 for ( ret_len = 0; pos != UBRK_DONE; ) {
253 pos = ubrk_next(bi);
255 if ( pos != UBRK_DONE ) {
258 boundary_array[ret_len] = pos;
275 int pos = 0; local
282 pos = ubrk_next(bi);
284 if ( UBRK_DONE != pos ) {
288 } while ( UBRK_DONE != pos );
298 int32_t pos; local
[all...]
/PHP_TRUNK/Zend/
H A Dzend_llist.c258 ZEND_API void *zend_llist_get_first_ex(zend_llist *l, zend_llist_position *pos) argument
260 zend_llist_position *current = pos ? pos : &l->traverse_ptr;
271 ZEND_API void *zend_llist_get_last_ex(zend_llist *l, zend_llist_position *pos) argument
273 zend_llist_position *current = pos ? pos : &l->traverse_ptr;
284 ZEND_API void *zend_llist_get_next_ex(zend_llist *l, zend_llist_position *pos) argument
286 zend_llist_position *current = pos ? pos : &l->traverse_ptr;
298 ZEND_API void *zend_llist_get_prev_ex(zend_llist *l, zend_llist_position *pos) argument
[all...]
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);
H A Dzend_static_allocator.c27 block->pos = block->bp = (char *) emalloc(block_size);
33 char *retval = block->pos;
34 if ((block->pos += size) >= block->end) {
H A Dzend_static_allocator.h33 char *pos; member in struct:_Block
/PHP_TRUNK/ext/dba/
H A Ddba_cdb.c60 uint32 pos; /* current position for traversing */ member in struct:__anon46
140 # define php_cdb_read(cdb, buf, len, pos) cdb_read(cdb, buf, len, pos TSRMLS_CC)
144 # define php_cdb_read(cdb, buf, len, pos) cdb_read(cdb, buf, len, pos)
281 cdb->pos = 2048 + 4 + 4 + klen + dlen;
298 CSEEK(cdb->pos);
312 cdb->pos += 8 + klen + dlen;
/PHP_TRUNK/ext/dba/libcdb/
H A Dcdb.c46 static int cdb_match(struct cdb *c, char *key, unsigned int len, uint32 pos TSRMLS_DC)
55 if (cdb_read(c, buf, n, pos TSRMLS_CC) == -1)
59 pos += n;
104 int cdb_read(struct cdb *c, char *buf, unsigned int len, uint32 pos TSRMLS_DC)
106 if (php_stream_seek(c->fp, pos, SEEK_SET) == -1) {
132 uint32 pos; local
153 uint32_unpack(buf + 4, &pos);
154 if (!pos)
162 if (cdb_read(c, buf, 8, pos TSRMLS_CC) == -1)
166 switch(cdb_match(c, key, len, pos
[all...]
H A Dcdb_make.h52 uint32 pos; member in struct:cdb_make
/PHP_TRUNK/ext/hash/
H A Dphp_hash_whirlpool.h29 int pos; member in struct:__anon99::__anon100
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_embedded.c42 HashPosition pos; local
58 zend_hash_internal_pointer_reset_ex(HASH_OF(args), &pos); local
60 for (index = 0;; zend_hash_move_forward_ex(HASH_OF(args), &pos)) {
63 if (zend_hash_get_current_data_ex(HASH_OF(args), (void **) &item, &pos) == FAILURE) {
79 zend_hash_internal_pointer_reset_ex(HASH_OF(grps), &pos); local
81 for (index = 0;; zend_hash_move_forward_ex(HASH_OF(grps), &pos)) {
84 if (zend_hash_get_current_data_ex(HASH_OF(grps), (void **) &item, &pos) == FAILURE) {
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_blacklist.c62 blacklist->pos = 0;
97 if (blacklist->pos == 0) {
109 for (i = 0; i < blacklist->pos; ) {
177 if (*c || i == blacklist->pos - 1) {
213 zend_blacklist_entry *p = blacklist->entries, *end = blacklist->entries + blacklist->pos;
234 if (blacklist->pos == blacklist->size) {
313 blacklist->entries[blacklist->pos].path_length = path_length;
314 blacklist->entries[blacklist->pos].path = (char *)malloc(path_length + 1);
315 if (!blacklist->entries[blacklist->pos].path) {
320 blacklist->entries[blacklist->pos]
[all...]
H A Dzend_accelerator_blacklist.h36 int pos; member in struct:_zend_blacklist
/PHP_TRUNK/main/streams/
H A Dglob_wrapper.c114 const char *pos, *gpath = path; local
116 if ((pos = strrchr(path, '/')) != NULL) {
117 path = pos+1;
120 if ((pos = strrchr(path, '\\')) != NULL) {
121 path = pos+1;
214 const char *tmp, *pos; local
239 pos = path;
240 if ((tmp = strrchr(pos, '/')) != NULL) {
241 pos = tmp+1;
244 if ((tmp = strrchr(pos, '\\')) !
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_info.c62 HashPosition pos; local
68 zend_hash_internal_pointer_reset_ex(&EG(included_files), &pos); local
70 NULL, NULL, 0, &pos) == HASH_KEY_IS_STRING) {
72 zend_hash_move_forward_ex(&EG(included_files), &pos); local
92 HashPosition pos; local
112 zend_hash_internal_pointer_reset_ex(EG(active_symbol_table), &pos); local
114 NULL, NULL, 0, &pos) == HASH_KEY_IS_STRING) {
115 zend_hash_get_current_data_ex(EG(active_symbol_table), (void **)&data, &pos); local
120 zend_hash_move_forward_ex(EG(active_symbol_table), &pos); local
147 for (zend_hash_internal_pointer_reset_ex(&vars, &pos);
[all...]
H A Dphpdbg_btree.c119 phpdbg_btree_position pos; local
121 pos.tree = tree;
122 pos.end = lower_idx;
123 pos.cur = higher_idx;
125 return pos;
128 phpdbg_btree_result *phpdbg_btree_next(phpdbg_btree_position *pos) { argument
129 phpdbg_btree_result *result = phpdbg_btree_find_closest(pos->tree, pos->cur);
131 if (result == NULL || result->idx < pos->end) {
135 pos
[all...]
/PHP_TRUNK/ext/standard/
H A Dhtml.c66 #define MB_FAILURE(pos, advance) do { \
67 *cursor = pos + (advance); \
72 #define CHECK_LEN(pos, chars_need) ((str_len - (pos)) >= (chars_need))
108 size_t pos = *cursor; local
112 assert(pos <= str_len);
114 if (!CHECK_LEN(pos, 1))
115 MB_FAILURE(pos, 1);
125 c = str[pos];
128 pos
1394 char *pos = (char*)&old[cursor+1]; local
[all...]
H A Dformatted_print.c55 php_sprintf_appendchar(char **buffer, int *pos, int *size, char add TSRMLS_DC) argument
57 if ((*pos + 1) >= *size) {
62 PRINTF_DEBUG(("sprintf: appending '%c', pos=\n", add, *pos));
63 (*buffer)[(*pos)++] = add;
69 php_sprintf_appendstring(char **buffer, int *pos, int *size, char *add, argument
86 *buffer, *pos, *size, add, min_width, padding, alignment));
89 if(m_width > INT_MAX - *pos - 1) {
93 req_size = *pos + m_width + 1;
107 (*buffer)[(*pos)
129 php_sprintf_appendint(char **buffer, int *pos, int *size, long number, int width, char padding, int alignment, int always_sign) argument
173 php_sprintf_appenduint(char **buffer, int *pos, int *size, unsigned long number, int width, char padding, int alignment) argument
205 php_sprintf_appenddouble(char **buffer, int *pos, int *size, double number, int width, char padding, int alignment, int precision, int adjust, char fmt, int always_sign TSRMLS_DC) argument
296 php_sprintf_append2n(char **buffer, int *pos, int *size, long number, int width, char padding, int alignment, int n, char *chartable, int expprec) argument
327 php_sprintf_getnumber(char *buffer, int *pos) argument
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_observer.c86 HashPosition pos; member in struct:_spl_SplObjectStorage
241 HashPosition pos; local
244 zend_hash_internal_pointer_reset_ex(&other->storage, &pos);
245 while (zend_hash_get_current_data_ex(&other->storage, (void **)&element, &pos) == SUCCESS) {
247 zend_hash_move_forward_ex(&other->storage, &pos);
250 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos);
319 HashPosition pos; local
341 zend_hash_internal_pointer_reset_ex(&intern->storage, &pos);
342 while (zend_hash_get_current_data_ex(&intern->storage, (void **)&element, &pos) == SUCCESS) {
352 zend_hash_move_forward_ex(&intern->storage, &pos);
371 HashPosition pos; local
765 HashPosition pos; local
[all...]

Completed in 44 milliseconds

1234567