Searched refs:idx (Results 1 - 25 of 53) sorted by relevance

123

/PHP_5_5/ext/xmlrpc/libxmlrpc/
H A Dqueue.c899 int idx; local
910 idx = Q_BSearch(q, data, Comp);
912 if(idx < 0)
915 q->cursor = posn_index[idx];
917 return index[idx];
/PHP_5_5/ext/zip/lib/
H A Dzip_delete.c43 zip_delete(struct zip *za, zip_uint64_t idx)
45 if (idx >= za->nentry) {
57 if (_zip_unchange(za, idx, 1) != 0)
60 za->entry[idx].state = ZIP_ST_DELETED;
41 zip_delete(struct zip *za, zip_uint64_t idx) argument
H A Dzip_file_get_offset.c56 _zip_file_get_offset(struct zip *za, int idx)
61 offset = za->cdir->entry[idx].offset;
54 _zip_file_get_offset(struct zip *za, int idx) argument
H A Dzip_fopen.c45 int idx;
47 if ((idx=zip_name_locate(za, fname, flags)) < 0)
50 return zip_fopen_index_encrypted(za, idx, flags, za->default_password);
43 int idx; local
H A Dzip_fopen_encrypted.c46 int idx;
48 if ((idx=zip_name_locate(za, fname, flags)) < 0)
51 return zip_fopen_index_encrypted(za, idx, flags, password);
44 int idx; local
H A Dzip_get_file_comment.c43 zip_get_file_comment(struct zip *za, zip_uint64_t idx, int *lenp, int flags)
45 if (idx >= za->nentry) {
51 || (za->entry[idx].ch_comment_len == -1)) {
53 *lenp = za->cdir->entry[idx].comment_len;
54 return za->cdir->entry[idx].comment;
58 *lenp = za->entry[idx].ch_comment_len;
59 return za->entry[idx].ch_comment;
41 zip_get_file_comment(struct zip *za, zip_uint64_t idx, int *lenp, int flags) argument
H A Dzip_get_file_extra.c41 zip_get_file_extra(struct zip *za, zip_uint64_t idx, int *lenp, int flags) argument
43 if (idx >= za->nentry) {
49 || (za->entry[idx].ch_extra_len == -1)) {
51 *lenp = za->cdir->entry[idx].extrafield_len;
52 return za->cdir->entry[idx].extrafield;
56 *lenp = za->entry[idx].ch_extra_len;
57 return za->entry[idx].ch_extra;
H A Dzip_get_name.c43 zip_get_name(struct zip *za, zip_uint64_t idx, int flags)
45 return _zip_get_name(za, idx, flags, &za->error);
52 _zip_get_name(struct zip *za, zip_uint64_t idx, int flags,
55 if (idx >= za->nentry) {
61 if (za->entry[idx].state == ZIP_ST_DELETED) {
65 if (za->entry[idx].ch_filename)
66 return za->entry[idx].ch_filename;
69 if (za->cdir == NULL || idx >= za->cdir->nentry) {
74 return za->cdir->entry[idx].filename;
41 zip_get_name(struct zip *za, zip_uint64_t idx, int flags) argument
49 _zip_get_name(struct zip *za, zip_uint64_t idx, int flags, struct zip_error *error) argument
H A Dzip_rename.c45 zip_rename(struct zip *za, zip_uint64_t idx, const char *name)
50 if (idx >= za->nentry || name[0] == '\0') {
60 if ((old_name=zip_get_name(za, idx, 0)) == NULL)
71 return _zip_set_name(za, idx, name);
43 zip_rename(struct zip *za, zip_uint64_t idx, const char *name) argument
H A Dzip_replace.c43 zip_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source)
45 if (idx >= za->nentry || source == NULL) {
50 if (_zip_replace(za, idx, NULL, source) == -1)
63 _zip_replace(struct zip *za, zip_uint64_t idx, const char *name,
71 if (idx == ZIP_UINT64_MAX) {
75 idx = za->nentry - 1;
78 _zip_unchange_data(za->entry+idx);
80 if (name && _zip_set_name(za, idx, name) != 0)
83 za->entry[idx].state = ((za->cdir == NULL || idx >
41 zip_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source) argument
60 _zip_replace(struct zip *za, zip_uint64_t idx, const char *name, struct zip_source *source) argument
[all...]
H A Dzip_set_file_comment.c45 zip_set_file_comment(struct zip *za, zip_uint64_t idx,
50 if (idx >= za->nentry
69 free(za->entry[idx].ch_comment);
70 za->entry[idx].ch_comment = tmpcom;
71 za->entry[idx].ch_comment_len = len;
43 zip_set_file_comment(struct zip *za, zip_uint64_t idx, const char *comment, int len) argument
H A Dzip_set_file_extra.c43 zip_set_file_extra(struct zip *za, zip_uint64_t idx, argument
48 if (idx >= za->nentry
67 free(za->entry[idx].ch_extra);
68 za->entry[idx].ch_extra = tmpext;
69 za->entry[idx].ch_extra_len = len;
H A Dzip_set_name.c46 _zip_set_name(struct zip *za, zip_uint64_t idx, const char *name)
51 if (idx >= za->nentry || name == NULL) {
56 if ((i=_zip_name_locate(za, name, 0, NULL)) != -1 && i != idx) {
62 if (i == idx)
70 if (za->entry[idx].state == ZIP_ST_UNCHANGED)
71 za->entry[idx].state = ZIP_ST_RENAMED;
73 free(za->entry[idx].ch_filename);
74 za->entry[idx].ch_filename = s;
44 _zip_set_name(struct zip *za, zip_uint64_t idx, const char *name) argument
H A Dzip_stat.c45 int idx;
47 if ((idx=zip_name_locate(za, fname, flags)) < 0)
50 return zip_stat_index(za, idx, flags, st);
43 int idx; local
H A Dzip_unchange.c45 zip_unchange(struct zip *za, zip_uint64_t idx)
47 return _zip_unchange(za, idx, 0);
54 _zip_unchange(struct zip *za, zip_uint64_t idx, int allow_duplicates)
58 if (idx >= za->nentry) {
63 if (za->entry[idx].ch_filename) {
66 _zip_get_name(za, idx, ZIP_FL_UNCHANGED, NULL),
68 if (i != -1 && i != idx) {
74 free(za->entry[idx].ch_filename);
75 za->entry[idx].ch_filename = NULL;
78 free(za->entry[idx]
43 zip_unchange(struct zip *za, zip_uint64_t idx) argument
51 _zip_unchange(struct zip *za, zip_uint64_t idx, int allow_duplicates) argument
[all...]
/PHP_5_5/scripts/dev/
H A Dcheck_parameters.php138 function check_param($db, $idx, $exp, $optional)
142 if ($idx >= count($db)) {
148 } elseif ($db[$idx][0] === '**dummy**') {
152 if ($db[$idx][1] != $exp) {
153 error("{$db[$idx][0]}: expected '$exp' but got '{$db[$idx][1]}' [".($idx+1).']');
156 if ($optional && !$db[$idx][2]) {
157 error("optional var not initialized: {$db[$idx][0]} [".($idx
[all...]
/PHP_5_5/ext/mbstring/libmbfl/filters/
H A Dmbfilter_iso2022_jp_ms.c277 int idx; local
279 idx = sjistoidx(0xfa, 0x40) + c;
280 if (idx >= sjistoidx(0xfa, 0x5c))
281 idx -= sjistoidx(0xfa, 0x5c) - sjistoidx(0xed, 0x40);
282 else if (idx >= sjistoidx(0xfa, 0x55))
283 idx -= sjistoidx(0xfa, 0x55) - sjistoidx(0xee, 0xfa);
284 else if (idx >= sjistoidx(0xfa, 0x40))
285 idx -= sjistoidx(0xfa, 0x40) - sjistoidx(0xee, 0xef);
286 return idxtojis1(idx) << 8 | idxtojis2(idx);
[all...]
/PHP_5_5/ext/mbstring/ucgendat/
H A Ducgendat.c198 ac_uint4 idx; member in struct:__anon283
783 ncodes[i].idx = make_number(num, denom);
806 ncodes[j].idx = ncodes[j - 1].idx;
810 ncodes[i].idx = make_number(num, denom);
1299 ac_uint4 i, idx, nprops; local
1333 for (i = idx = 0; i < NUMPROPS; i++) {
1334 propcnt[i] = (proptbl[i].used != 0) ? idx : 0xffff;
1335 idx += proptbl[i].used;
1342 propcnt[i] = idx;
[all...]
/PHP_5_5/ext/spl/internal/
H A Dsplobjectstorage.inc127 foreach($this->storage as $idx => $element)
131 unset($this->storage[$idx]);
159 foreach($this->storage as $idx => $element)
/PHP_5_5/ext/spl/
H A Dspl_engine.c50 ZEND_HANDLE_NUMERIC(Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, idx);
/PHP_5_5/ext/standard/
H A Dhttp.c38 ulong idx; local
59 (key_type = zend_hash_get_current_key_ex(ht, &key, &key_len, &idx, 0, NULL)) != HASH_KEY_NON_EXISTENT;
113 ekey_len = spprintf(&ekey, 0, "%ld", idx);
165 ekey_len = spprintf(&ekey, 0, "%ld", idx);
H A Dmetaphone.c130 int idx; local
131 for (idx = 0; word[idx] != '\0' && idx < how_far; idx++);
134 letter_ahead = word[idx]; /* idx will be either == to how_far or
/PHP_5_5/Zend/
H A Dzend_hash.h310 #define ZEND_HANDLE_NUMERIC_EX(key, length, idx, func) do { \
327 idx = (*tmp - '0'); \
329 idx = (idx * 10) + (*tmp - '0'); \
333 if (idx-1 > LONG_MAX) { /* overflow */ \
336 idx = 0 - idx; \
337 } else if (idx > LONG_MAX) { /* overflow */ \
346 ulong idx; \
348 ZEND_HANDLE_NUMERIC_EX(key, length, idx, retur
[all...]
/PHP_5_5/ext/mysqlnd/
H A Dmysqlnd_result_meta.c55 mysqlnd_is_key_numeric(const char * key, size_t length, long *idx) argument
77 *idx = strtol(key, NULL, 10);
78 if (*idx!=LONG_MIN) {
82 *idx = strtol(key, NULL, 10);
83 if (*idx!=LONG_MAX) {
111 long idx; local
185 &idx)))
187 meta->zend_hash_keys[i].key = idx;
/PHP_5_5/sapi/cgi/
H A Dfastcgi.c161 unsigned int idx; member in struct:_fcgi_hash_buckets
185 h->buckets->idx = 0;
223 h->buckets->idx = 0;
256 unsigned int idx = hash_value & FCGI_HASH_TABLE_MASK; local
257 fcgi_hash_bucket *p = h->hash_table[idx];
271 if (UNEXPECTED(h->buckets->idx >= FCGI_HASH_TABLE_SIZE)) {
273 b->idx = 0;
277 p = h->buckets->data + h->buckets->idx;
278 h->buckets->idx++;
279 p->next = h->hash_table[idx];
293 unsigned int idx = hash_value & FCGI_HASH_TABLE_MASK; local
312 unsigned int idx = hash_value & FCGI_HASH_TABLE_MASK; local
[all...]

Completed in 16 milliseconds

123