Searched defs:idx (Results 1 - 25 of 67) 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/spl/
H A Dspl_engine.c45 zend_ulong idx; local
49 if (ZEND_HANDLE_NUMERIC(Z_STR_P(offset), idx)) {
50 return idx;
/PHP_TRUNK/ext/zip/lib/
H A Dzip_add_entry.c45 zip_uint64_t idx; local
65 idx = za->nentry++;
67 _zip_entry_init(za->entry+idx);
69 return (zip_int64_t)idx;
H A Dzip_delete.c39 zip_delete(zip_t *za, zip_uint64_t idx) argument
41 if (idx >= za->nentry) {
53 if (_zip_unchange(za, idx, 1) != 0)
56 za->entry[idx].deleted = 1;
H A Dzip_dir_add.c47 zip_int64_t idx; local
79 idx = _zip_file_replace(za, ZIP_UINT64_MAX, s ? s : name, source, flags);
83 if (idx < 0)
86 if (zip_file_set_external_attributes(za, (zip_uint64_t)idx, 0, ZIP_OPSYS_DEFAULT, ZIP_EXT_ATTRIB_DEFAULT_DIR) < 0) {
87 zip_delete(za, (zip_uint64_t)idx);
92 return idx;
H A Dzip_file_get_comment.c40 zip_file_get_comment(zip_t *za, zip_uint64_t idx, zip_uint32_t *lenp, zip_flags_t flags) argument
46 if ((de=_zip_get_dirent(za, idx, flags, NULL)) == NULL)
H A Dzip_file_get_external_attributes.c37 zip_file_get_external_attributes(zip_t *za, zip_uint64_t idx, zip_flags_t flags, zip_uint8_t *opsys, zip_uint32_t *attributes) argument
41 if ((de=_zip_get_dirent(za, idx, flags, NULL)) == NULL)
H A Dzip_file_get_offset.c52 _zip_file_get_offset(const zip_t *za, zip_uint64_t idx, zip_error_t *error) argument
57 offset = za->entry[idx].orig->offset;
H A Dzip_file_rename.c41 zip_file_rename(zip_t *za, zip_uint64_t idx, const char *name, zip_flags_t flags) argument
46 if (idx >= za->nentry || (name != NULL && strlen(name) > ZIP_UINT16_MAX)) {
56 if ((old_name=zip_get_name(za, idx, 0)) == NULL)
67 return _zip_set_name(za, idx, name, flags);
H A Dzip_file_replace.c39 zip_file_replace(zip_t *za, zip_uint64_t idx, zip_source_t *source, zip_flags_t flags) argument
41 if (idx >= za->nentry || source == NULL) {
46 if (_zip_file_replace(za, idx, NULL, source, flags) == -1)
57 _zip_file_replace(zip_t *za, zip_uint64_t idx, const char *name, zip_source_t *source, zip_flags_t flags) argument
67 if (idx == ZIP_UINT64_MAX) {
78 idx = (zip_uint64_t)i;
81 if (name && _zip_set_name(za, idx, name, flags) != 0) {
83 _zip_entry_finalize(za->entry+idx);
91 _zip_unchange_data(za->entry+idx);
93 if (za->entry[idx]
[all...]
H A Dzip_file_set_comment.c41 zip_file_set_comment(zip_t *za, zip_uint64_t idx, argument
48 if (_zip_get_dirent(za, idx, 0, NULL) == NULL)
70 e = za->entry+idx;
H A Dzip_file_set_external_attributes.c37 zip_file_set_external_attributes(zip_t *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_file_set_mtime.c36 ZIP_EXTERN int zip_file_set_mtime(zip_t *za, zip_uint64_t idx, time_t mtime, zip_flags_t flags) argument
41 if (_zip_get_dirent(za, idx, 0, NULL) == NULL)
49 e = za->entry+idx;
H A Dzip_fopen.c41 zip_int64_t idx; local
43 if ((idx=zip_name_locate(za, fname, flags)) < 0)
46 return zip_fopen_index_encrypted(za, (zip_uint64_t)idx, flags, za->default_password);
H A Dzip_fopen_encrypted.c41 zip_int64_t idx; local
43 if ((idx=zip_name_locate(za, fname, flags)) < 0)
46 return zip_fopen_index_encrypted(za, (zip_uint64_t)idx, flags, password);
H A Dzip_get_file_comment.c40 zip_get_file_comment(zip_t *za, zip_uint64_t idx, int *lenp, int flags) argument
45 if ((s=zip_file_get_comment(za, idx, &len, (zip_flags_t)flags)) != NULL) {
H A Dzip_get_name.c41 zip_get_name(zip_t *za, zip_uint64_t idx, zip_flags_t flags) argument
43 return _zip_get_name(za, idx, flags, &za->error);
48 _zip_get_name(zip_t *za, zip_uint64_t idx, zip_flags_t flags, zip_error_t *error) argument
53 if ((de=_zip_get_dirent(za, idx, flags, error)) == NULL)
H A Dzip_rename.c42 zip_rename(zip_t *za, zip_uint64_t idx, const char *name) argument
44 return zip_file_rename(za, idx, name, 0);
H A Dzip_replace.c40 zip_replace(zip_t *za, zip_uint64_t idx, zip_source_t *source) argument
42 return zip_file_replace(za, idx, source, 0);
H A Dzip_set_file_comment.c42 zip_set_file_comment(zip_t *za, zip_uint64_t idx, const char *comment, int len) argument
48 return zip_file_set_comment(za, idx, comment, (zip_uint16_t)len, 0);
H A Dzip_set_file_compression.c39 zip_set_file_compression(zip_t *za, zip_uint64_t idx, zip_int32_t method, zip_uint32_t flags) argument
44 if (idx >= za->nentry) {
59 e = za->entry+idx;
H A Dzip_set_name.c42 _zip_set_name(zip_t *za, zip_uint64_t idx, const char *name, zip_flags_t flags) argument
49 if (idx >= za->nentry) {
70 if ((i=_zip_name_locate(za, name, 0, NULL)) >= 0 && (zip_uint64_t)i != idx) {
77 if (i>=0 && (zip_uint64_t)i == idx) {
82 e = za->entry+idx;
H A Dzip_stat.c41 zip_int64_t idx; local
43 if ((idx=zip_name_locate(za, fname, flags)) < 0)
46 return zip_stat_index(za, (zip_uint64_t)idx, flags, st);
H A Dzip_unchange.c41 zip_unchange(zip_t *za, zip_uint64_t idx) argument
43 return _zip_unchange(za, idx, 0);
48 _zip_unchange(zip_t *za, zip_uint64_t idx, int allow_duplicates) argument
52 if (idx >= za->nentry) {
57 if (!allow_duplicates && za->entry[idx].changes && (za->entry[idx].changes->changed & ZIP_DIRENT_FILENAME)) {
58 i = _zip_name_locate(za, _zip_get_name(za, idx, ZIP_FL_UNCHANGED, NULL), 0, NULL);
59 if (i >= 0 && (zip_uint64_t)i != idx) {
65 _zip_dirent_free(za->entry[idx].changes);
66 za->entry[idx]
[all...]
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_result_meta.c67 zend_ulong idx; local
138 if ((meta->zend_hash_keys[i].is_numeric = ZEND_HANDLE_NUMERIC(field_packet->metadata->sname, idx))) {
139 meta->zend_hash_keys[i].key = idx;

Completed in 21 milliseconds

123