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

123456

/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/mbstring/oniguruma/
H A Dregint.h334 #define BS_ROOM(bs,pos) (bs)[pos / BITS_IN_ROOM]
335 #define BS_BIT(pos) (1 << (pos % BITS_IN_ROOM))
337 #define BITSET_AT(bs, pos) (BS_ROOM(bs,pos) & BS_BIT(pos))
338 #define BITSET_SET_BIT(bs, pos) BS_ROOM(bs,pos) |= BS_BIT(pos)
[all...]
/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/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/sapi/phpdbg/
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...]
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...]
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_blacklist.h36 int pos; member in struct:_zend_blacklist
H A Dzend_accelerator_blacklist.c53 blacklist->pos = 0;
88 if (blacklist->pos == 0) {
100 for (i = 0; i < blacklist->pos; ) {
168 if (*c || i == blacklist->pos - 1) {
204 zend_blacklist_entry *p = blacklist->entries, *end = blacklist->entries + blacklist->pos;
225 if (blacklist->pos == blacklist->size) {
300 blacklist->entries[blacklist->pos].path_length = path_length;
301 blacklist->entries[blacklist->pos].path = (char *)malloc(path_length + 1);
302 if (!blacklist->entries[blacklist->pos].path) {
307 blacklist->entries[blacklist->pos]
[all...]
/PHP_TRUNK/Zend/
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
H A Dzend_llist.c252 ZEND_API void *zend_llist_get_first_ex(zend_llist *l, zend_llist_position *pos) argument
254 zend_llist_position *current = pos ? pos : &l->traverse_ptr;
265 ZEND_API void *zend_llist_get_last_ex(zend_llist *l, zend_llist_position *pos) argument
267 zend_llist_position *current = pos ? pos : &l->traverse_ptr;
278 ZEND_API void *zend_llist_get_next_ex(zend_llist *l, zend_llist_position *pos) argument
280 zend_llist_position *current = pos ? pos : &l->traverse_ptr;
292 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);
/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/standard/
H A Dformatted_print.c55 php_sprintf_appendchar(zend_string **buffer, size_t *pos, char add TSRMLS_DC) argument
57 if (!*buffer || (*pos + 1) >= (*buffer)->len) {
61 PRINTF_DEBUG(("sprintf: appending '%c', pos=\n", add, *pos));
62 (*buffer)->val[(*pos)++] = add;
68 php_sprintf_appendstring(zend_string **buffer, size_t *pos, char *add, argument
81 *buffer, *pos, (*buffer)->len, add, min_width, padding, alignment));
84 if(m_width > INT_MAX - *pos - 1) {
88 req_size = *pos + m_width + 1;
103 (*buffer)->val[(*pos)
125 php_sprintf_appendint(zend_string **buffer, size_t *pos, zend_long number, size_t width, char padding, size_t alignment, int always_sign) argument
169 php_sprintf_appenduint(zend_string **buffer, size_t *pos, zend_ulong number, size_t width, char padding, size_t alignment) argument
201 php_sprintf_appenddouble(zend_string **buffer, size_t *pos, double number, size_t width, char padding, size_t alignment, int precision, int adjust, char fmt, int always_sign TSRMLS_DC) argument
293 php_sprintf_append2n(zend_string **buffer, size_t *pos, zend_long number, size_t width, char padding, size_t alignment, int n, char *chartable, int expprec) argument
324 php_sprintf_getnumber(char *buffer, size_t *pos) argument
[all...]
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
1392 char *pos = (char*)&old[cursor+1]; local
[all...]
/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...]

Completed in 81 milliseconds

123456