Searched defs:idx (Results 1 - 25 of 58) sorted by relevance

123

/PHP_TRUNK/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_TRUNK/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_file_set_external_attributes.c37 zip_file_set_external_attributes(struct zip *za, zip_uint64_t idx, zip_flags_t flags, zip_uint8_t opsys, zip_uint32_t attributes) argument
44 if (_zip_get_dirent(za, idx, 0, NULL) == NULL)
52 e = za->entry+idx;
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
/PHP_TRUNK/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_TRUNK/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 34 milliseconds

123