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

123

/PHP_5_6/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].deleted = 1;
41 zip_delete(struct zip *za, zip_uint64_t idx) argument
H A Dzip_file_get_comment.c44 zip_file_get_comment(struct zip *za, zip_uint64_t idx, zip_uint32_t *lenp, zip_flags_t flags)
50 if ((de=_zip_get_dirent(za, idx, flags, NULL)) == NULL)
42 zip_file_get_comment(struct zip *za, zip_uint64_t idx, zip_uint32_t *lenp, zip_flags_t flags) argument
H A Dzip_file_rename.c45 zip_file_rename(struct zip *za, zip_uint64_t idx, const char *name, zip_flags_t flags)
50 if (idx >= za->nentry || (name != NULL && strlen(name) > ZIP_UINT16_MAX)) {
60 if ((old_name=zip_get_name(za, idx, 0)) == NULL)
71 return _zip_set_name(za, idx, name, flags);
43 zip_file_rename(struct zip *za, zip_uint64_t idx, const char *name, zip_flags_t flags) argument
H A Dzip_file_replace.c43 zip_file_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source, zip_flags_t flags)
45 if (idx >= za->nentry || source == NULL) {
50 if (_zip_file_replace(za, idx, NULL, source, flags) == -1)
63 _zip_file_replace(struct zip *za, zip_uint64_t idx, const char *name, struct zip_source *source, zip_flags_t flags)
73 if (idx == ZIP_UINT64_MAX) {
84 idx = (zip_uint64_t)i;
87 if (name && _zip_set_name(za, idx, name, flags) != 0) {
89 _zip_entry_finalize(za->entry+idx);
97 _zip_unchange_data(za->entry+idx);
99 if (za->entry[idx]
41 zip_file_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source, zip_flags_t flags) argument
60 _zip_file_replace(struct zip *za, zip_uint64_t idx, const char *name, struct zip_source *source, zip_flags_t flags) argument
[all...]
H A Dzip_file_set_comment.c45 zip_file_set_comment(struct zip *za, zip_uint64_t idx,
52 if (_zip_get_dirent(za, idx, 0, NULL) == NULL)
74 e = za->entry+idx;
43 zip_file_set_comment(struct zip *za, zip_uint64_t idx, const char *comment, zip_uint16_t len, zip_flags_t flags) argument
H A Dzip_fopen.c45 zip_int64_t idx;
47 if ((idx=zip_name_locate(za, fname, flags)) < 0)
50 return zip_fopen_index_encrypted(za, (zip_uint64_t)idx, flags, za->default_password);
43 zip_int64_t idx; local
H A Dzip_fopen_encrypted.c45 zip_int64_t idx;
47 if ((idx=zip_name_locate(za, fname, flags)) < 0)
50 return zip_fopen_index_encrypted(za, (zip_uint64_t)idx, flags, password);
43 zip_int64_t idx; local
H A Dzip_get_file_comment.c44 zip_get_file_comment(struct zip *za, zip_uint64_t idx, int *lenp, int flags)
49 if ((s=zip_file_get_comment(za, idx, &len, (zip_flags_t)flags)) != NULL) {
42 zip_get_file_comment(struct zip *za, zip_uint64_t idx, int *lenp, int flags) argument
H A Dzip_get_name.c45 zip_get_name(struct zip *za, zip_uint64_t idx, zip_flags_t flags)
47 return _zip_get_name(za, idx, flags, &za->error);
54 _zip_get_name(struct zip *za, zip_uint64_t idx, zip_flags_t flags, struct zip_error *error)
59 if ((de=_zip_get_dirent(za, idx, flags, error)) == NULL)
43 zip_get_name(struct zip *za, zip_uint64_t idx, zip_flags_t flags) argument
51 _zip_get_name(struct zip *za, zip_uint64_t idx, zip_flags_t flags, struct zip_error *error) argument
H A Dzip_rename.c46 zip_rename(struct zip *za, zip_uint64_t idx, const char *name)
48 return zip_file_rename(za, idx, name, 0);
44 zip_rename(struct zip *za, zip_uint64_t idx, const char *name) argument
H A Dzip_replace.c44 zip_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source)
46 return zip_file_replace(za, idx, source, 0);
42 zip_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source) argument
H A Dzip_set_file_comment.c46 zip_set_file_comment(struct zip *za, zip_uint64_t idx, const char *comment, int len)
52 return zip_file_set_comment(za, idx, comment, (zip_uint16_t)len, 0);
44 zip_set_file_comment(struct zip *za, zip_uint64_t idx, const char *comment, int len) argument
H A Dzip_stat.c45 zip_int64_t idx;
47 if ((idx=zip_name_locate(za, fname, flags)) < 0)
50 return zip_stat_index(za, (zip_uint64_t)idx, flags, st);
43 zip_int64_t 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 (!allow_duplicates && za->entry[idx].changes && (za->entry[idx].changes->changed & ZIP_DIRENT_FILENAME)) {
64 i = _zip_name_locate(za, _zip_get_name(za, idx, ZIP_FL_UNCHANGED, NULL), 0, NULL);
65 if (i >= 0 && (zip_uint64_t)i != idx) {
71 _zip_dirent_free(za->entry[idx].changes);
72 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...]
H A Dzip_add_entry.c49 zip_uint64_t idx;
64 idx = za->nentry++;
66 _zip_entry_init(za->entry+idx);
68 return (zip_int64_t)idx;
47 zip_uint64_t idx; local
H A Dzip_file_get_offset.c56 _zip_file_get_offset(const struct zip *za, zip_uint64_t idx, struct zip_error *error)
61 offset = za->entry[idx].orig->offset;
54 _zip_file_get_offset(const struct zip *za, zip_uint64_t idx, struct zip_error *error) argument
H A Dzip_set_file_compression.c43 zip_set_file_compression(struct zip *za, zip_uint64_t idx,
49 if (idx >= za->nentry) {
64 e = za->entry+idx;
41 zip_set_file_compression(struct zip *za, zip_uint64_t idx, zip_int32_t method, zip_uint32_t flags) argument
H A Dzip_set_name.c46 _zip_set_name(struct zip *za, zip_uint64_t idx, const char *name, zip_flags_t flags)
53 if (idx >= za->nentry) {
74 if ((i=_zip_name_locate(za, name, 0, NULL)) >= 0 && (zip_uint64_t)i != idx) {
81 if (i>=0 && (zip_uint64_t)i == idx) {
86 e = za->entry+idx;
44 _zip_set_name(struct zip *za, zip_uint64_t idx, const char *name, zip_flags_t flags) argument
H A Dzip_file_get_external_attributes.c37 zip_file_get_external_attributes(struct zip *za, zip_uint64_t idx, zip_flags_t flags, zip_uint8_t *opsys, zip_uint32_t *attributes) argument
43 if ((de=_zip_get_dirent(za, idx, flags, NULL)) == NULL)
H A Dzip_dir_add.c51 zip_int64_t idx;
83 idx = _zip_file_replace(za, ZIP_UINT64_MAX, s ? s : name, source, flags);
87 if (idx < 0)
90 if (zip_file_set_external_attributes(za, (zip_uint64_t)idx, 0, ZIP_OPSYS_DEFAULT, ZIP_EXT_ATTRIB_DEFAULT_DIR) < 0) {
91 zip_delete(za, (zip_uint64_t)idx);
96 return idx;
49 zip_int64_t idx; local
H A Dzip_extra_field_api.c43 zip_file_extra_field_delete(struct zip *za, zip_uint64_t idx, zip_uint16_t ef_idx, zip_flags_t flags)
57 if (_zip_get_dirent(za, idx, 0, NULL) == NULL)
65 if (_zip_file_extra_field_prepare_for_change(za, idx) < 0)
68 de = za->entry[idx].changes;
78 zip_file_extra_field_delete_by_id(struct zip *za, zip_uint64_t idx, zip_uint16_t ef_id, zip_uint16_t ef_idx, zip_flags_t flags)
92 if (_zip_get_dirent(za, idx, 0, NULL) == NULL)
100 if (_zip_file_extra_field_prepare_for_change(za, idx) < 0)
103 de = za->entry[idx].changes;
113 zip_file_extra_field_get(struct zip *za, zip_uint64_t idx, zip_uint16_t ef_idx, zip_uint16_t *idp, zip_uint16_t *lenp, zip_flags_t flags)
126 if ((de=_zip_get_dirent(za, idx, flag
41 zip_file_extra_field_delete(struct zip *za, zip_uint64_t idx, zip_uint16_t ef_idx, zip_flags_t flags) argument
75 zip_file_extra_field_delete_by_id(struct zip *za, zip_uint64_t idx, zip_uint16_t ef_id, zip_uint16_t ef_idx, zip_flags_t flags) argument
109 zip_file_extra_field_get(struct zip *za, zip_uint64_t idx, zip_uint16_t ef_idx, zip_uint16_t *idp, zip_uint16_t *lenp, zip_flags_t flags) argument
156 zip_file_extra_field_get_by_id(struct zip *za, zip_uint64_t idx, zip_uint16_t ef_id, zip_uint16_t ef_idx, zip_uint16_t *lenp, zip_flags_t flags) argument
178 zip_file_extra_fields_count(struct zip *za, zip_uint64_t idx, zip_flags_t flags) argument
207 zip_file_extra_fields_count_by_id(struct zip *za, zip_uint64_t idx, zip_uint16_t ef_id, zip_flags_t flags) argument
236 zip_file_extra_field_set(struct zip *za, zip_uint64_t idx, zip_uint16_t ef_id, zip_uint16_t ef_idx, const zip_uint8_t *data, zip_uint16_t len, zip_flags_t flags) argument
340 _zip_file_extra_field_prepare_for_change(struct zip *za, zip_uint64_t idx) argument
[all...]
/PHP_5_6/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_6/ext/spl/
H A Dspl_engine.c50 ZEND_HANDLE_NUMERIC(Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, idx);
/PHP_5_6/sapi/phpdbg/
H A Dphpdbg_btree.c39 phpdbg_btree_result *phpdbg_btree_find(phpdbg_btree *tree, zend_ulong idx) { argument
48 if ((idx >> i) % 2 == 1) {
66 phpdbg_btree_result *phpdbg_btree_find_closest(phpdbg_btree *tree, zend_ulong idx) { argument
78 if (!had_alternative_branch && (idx >> i) % 2 == 0 && !branch->branches[0]) {
79 /* there's no lower branch than idx */
87 /* follow branch according to bits in idx until the last lower branch before the impossible branch */
89 CHOOSE_BRANCH((idx >> i) % 2 == 1 && branch->branches[1]);
91 /* use now the lower branch of which we can be sure that it contains only branches lower than idx */
93 /* and choose the highest possible branch in the branch containing only branches lower than idx */
99 /* follow branch according to bits in idx unti
140 phpdbg_btree_insert_or_update(phpdbg_btree *tree, zend_ulong idx, void *ptr, int flags) argument
175 phpdbg_btree_delete(phpdbg_btree *tree, zend_ulong idx) argument
[all...]
H A Dphpdbg_btree.h27 zend_ulong idx; member in struct:__anon2
50 phpdbg_btree_result *phpdbg_btree_find(phpdbg_btree *tree, zend_ulong idx);
51 phpdbg_btree_result *phpdbg_btree_find_closest(phpdbg_btree *tree, zend_ulong idx);
54 int phpdbg_btree_delete(phpdbg_btree *tree, zend_ulong idx);
60 int phpdbg_btree_insert_or_update(phpdbg_btree *tree, zend_ulong idx, void *ptr, int flags);
61 #define phpdbg_btree_insert(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BTREE_INSERT)
62 #define phpdbg_btree_update(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BTREE_UPDATE)
63 #define phpdbg_btree_overwrite(tree, idx, pt
[all...]

Completed in 80 milliseconds

123