Lines Matching refs:ht

55 	HashTable *ht;  member
60 HashTable ht; member
105 ALLOC_HASHTABLE(map->ht); in dom_xml_ns_prefix_map_ctor()
106 zend_hash_init(map->ht, 8, NULL, NULL, false); in dom_xml_ns_prefix_map_ctor()
112 ZEND_HASH_MAP_FOREACH_PTR(map->ht, list) { in dom_xml_ns_prefix_map_destroy()
126 zend_hash_destroy(map->ht); in dom_xml_ns_prefix_map_destroy()
127 efree(map->ht); in dom_xml_ns_prefix_map_destroy()
128 map->ht = NULL; in dom_xml_ns_prefix_map_destroy()
133 if (GC_DELREF(map->ht) == 0) { in dom_xml_ns_prefix_map_dtor()
140 dst->ht = src->ht; in dom_xml_ns_prefix_map_copy()
141 GC_ADDREF(dst->ht); in dom_xml_ns_prefix_map_copy()
146 zend_hash_init(&map->ht, 8, NULL, NULL, false); in dom_xml_local_prefix_map_ctor()
151 zend_hash_destroy(&map->ht); in dom_xml_local_prefix_map_dtor()
162 zend_hash_str_add_ptr(&map->ht, (const char *) prefix, prefix_len, (void *) ns); in dom_xml_local_prefix_map_add()
172 return zend_hash_str_find_ptr(&map->ht, (const char *) prefix, prefix_len); in dom_xml_local_prefix_map_find()
207 ZEND_ASSERT(map->ht != NULL); in dom_xml_ns_prefix_map_add()
214 if (GC_REFCOUNT(map->ht) > 1) { in dom_xml_ns_prefix_map_add()
215 GC_DELREF(map->ht); in dom_xml_ns_prefix_map_add()
216 map->ht = zend_array_dup(map->ht); in dom_xml_ns_prefix_map_add()
219 ZEND_HASH_MAP_FOREACH_PTR(map->ht, list) { in dom_xml_ns_prefix_map_add()
227 HashTable *list = zend_hash_str_find_ptr(map->ht, (const char *) ns, ns_length); in dom_xml_ns_prefix_map_add()
234 zend_hash_str_add_new_ptr(map->ht, (const char *) ns, ns_length, list); in dom_xml_ns_prefix_map_add()
238 zend_hash_str_update_ptr(map->ht, (const char *) ns, ns_length, list); in dom_xml_ns_prefix_map_add()
254 ZEND_ASSERT(map->ht != NULL); in dom_get_candidates_list()
259 return zend_hash_str_find_ptr(map->ht, (const char *) ns, ns_length); in dom_get_candidates_list()
385 ZEND_ASSERT(namespace_prefix_map->ht != NULL); in dom_retrieve_a_preferred_prefix_string()