Lines Matching refs:intern

29 #define TOKEN_LIST_GET_SET(intern) (&(intern)->token_set)  argument
118 static zend_always_inline xmlNode *dom_token_list_get_element(dom_token_list_object *intern) in dom_token_list_get_element() argument
120 php_libxml_node_ptr *element_ptr = intern->dom.ptr; in dom_token_list_get_element()
124 static zend_always_inline const xmlAttr *dom_token_list_get_attr(dom_token_list_object *intern) in dom_token_list_get_attr() argument
126 const xmlNode *element_node = dom_token_list_get_element(intern); in dom_token_list_get_attr()
131 static void dom_token_list_update(dom_token_list_object *intern) in dom_token_list_update() argument
133 const xmlAttr *attr = dom_token_list_get_attr(intern); in dom_token_list_update()
134 HashTable *token_set = TOKEN_LIST_GET_SET(intern); in dom_token_list_update()
136 php_libxml_invalidate_cache_tag(&intern->cache_tag); in dom_token_list_update()
146 xmlSetNsProp(dom_token_list_get_element(intern), NULL, BAD_CAST "class", BAD_CAST value); in dom_token_list_update()
147 efree(intern->cached_string); in dom_token_list_update()
148 intern->cached_string = value; in dom_token_list_update()
160 static void dom_token_list_update_set(dom_token_list_object *intern, HashTable *token_set) in dom_token_list_update_set() argument
164 const xmlAttr *attr = dom_token_list_get_attr(intern); in dom_token_list_update_set()
170 intern->cached_string = estrdup((const char *) value); in dom_token_list_update_set()
172 intern->cached_string = NULL; in dom_token_list_update_set()
180 static void dom_token_list_ensure_set_up_to_date(dom_token_list_object *intern) in dom_token_list_ensure_set_up_to_date() argument
183 const xmlAttr *attr = dom_token_list_get_attr(intern); in dom_token_list_ensure_set_up_to_date()
187 if (!xmlStrEqual(value, (const xmlChar *) intern->cached_string)) { in dom_token_list_ensure_set_up_to_date()
188 php_libxml_invalidate_cache_tag(&intern->cache_tag); in dom_token_list_ensure_set_up_to_date()
189 efree(intern->cached_string); in dom_token_list_ensure_set_up_to_date()
190 HashTable *token_set = TOKEN_LIST_GET_SET(intern); in dom_token_list_ensure_set_up_to_date()
193 dom_token_list_update_set(intern, token_set); in dom_token_list_ensure_set_up_to_date()
201 void dom_token_list_ctor(dom_token_list_object *intern, dom_object *element_obj) in dom_token_list_ctor() argument
205 intern->dom.ptr = ptr; in dom_token_list_ctor()
207 intern->dom.document = element_obj->document; in dom_token_list_ctor()
209 intern->cache_tag.modification_nr = 0; in dom_token_list_ctor()
211 HashTable *token_set = TOKEN_LIST_GET_SET(intern); in dom_token_list_ctor()
214 dom_token_list_update_set(intern, token_set); in dom_token_list_ctor()
219 dom_token_list_object *intern = php_dom_token_list_from_obj(object); in dom_token_list_free_obj() local
223 if (EXPECTED(intern->dom.ptr != NULL)) { /* Object initialized? */ in dom_token_list_free_obj()
224 xmlNodePtr node = dom_token_list_get_element(intern); in dom_token_list_free_obj()
225 if (php_libxml_decrement_node_ptr_ref(intern->dom.ptr) == 0) { in dom_token_list_free_obj()
228 php_libxml_decrement_doc_ref((php_libxml_node_object *) &intern->dom); in dom_token_list_free_obj()
229 HashTable *token_set = TOKEN_LIST_GET_SET(intern); in dom_token_list_free_obj()
231 efree(intern->cached_string); in dom_token_list_free_obj()
367 dom_token_list_object *intern = php_dom_token_list_from_dom_obj(obj); in dom_token_list_value_read() local
368 const xmlAttr *attr = dom_token_list_get_attr(intern); in dom_token_list_value_read()
380 dom_token_list_object *intern = php_dom_token_list_from_dom_obj(obj); in dom_token_list_value_write() local
385 …xmlSetNsProp(dom_token_list_get_element(intern), NULL, BAD_CAST "class", BAD_CAST Z_STRVAL_P(newva… in dom_token_list_value_write()
471 dom_token_list_object *intern = TOKEN_LIST_GET_INTERNAL(); in PHP_METHOD() local
472 dom_token_list_ensure_set_up_to_date(intern); in PHP_METHOD()
473 HashTable *token_set = TOKEN_LIST_GET_SET(intern); in PHP_METHOD()
479 dom_token_list_update(intern); in PHP_METHOD()
497 dom_token_list_object *intern = TOKEN_LIST_GET_INTERNAL(); in PHP_METHOD() local
498 dom_token_list_ensure_set_up_to_date(intern); in PHP_METHOD()
499 HashTable *token_set = TOKEN_LIST_GET_SET(intern); in PHP_METHOD()
505 dom_token_list_update(intern); in PHP_METHOD()
525 dom_token_list_object *intern = TOKEN_LIST_GET_INTERNAL(); in PHP_METHOD() local
526 dom_token_list_ensure_set_up_to_date(intern); in PHP_METHOD()
527 HashTable *token_set = TOKEN_LIST_GET_SET(intern); in PHP_METHOD()
537 dom_token_list_update(intern); in PHP_METHOD()
548 dom_token_list_update(intern); in PHP_METHOD()
571 dom_token_list_object *intern = TOKEN_LIST_GET_INTERNAL(); in PHP_METHOD() local
572 dom_token_list_ensure_set_up_to_date(intern); in PHP_METHOD()
573 HashTable *token_set = TOKEN_LIST_GET_SET(intern); in PHP_METHOD()
590 dom_token_list_update(intern); in PHP_METHOD()
613 dom_token_list_object *intern = TOKEN_LIST_GET_INTERNAL(); in PHP_METHOD() local
614 dom_token_list_ensure_set_up_to_date(intern); in PHP_METHOD()
615 RETURN_LONG(zend_hash_num_elements(TOKEN_LIST_GET_SET(intern))); in PHP_METHOD()
717 dom_token_list_object *intern = Z_TOKEN_LIST_P(object); in dom_token_list_get_iterator() local
718 dom_token_list_ensure_set_up_to_date(intern); in dom_token_list_get_iterator()
719 HashTable *token_set = TOKEN_LIST_GET_SET(intern); in dom_token_list_get_iterator()
727 iterator->cache_tag = intern->cache_tag; in dom_token_list_get_iterator()