Lines Matching refs:index
108 dom_nodelist_dimension_index index = dom_modern_nodelist_get_index(offset); in dom_html_collection_read_dimension() local
109 if (UNEXPECTED(index.type == DOM_NODELIST_DIM_ILLEGAL)) { in dom_html_collection_read_dimension()
114 if (index.type == DOM_NODELIST_DIM_STRING) { in dom_html_collection_read_dimension()
115 dom_html_collection_named_item_into_zval(rv, index.str, object); in dom_html_collection_read_dimension()
117 ZEND_ASSERT(index.type == DOM_NODELIST_DIM_LONG); in dom_html_collection_read_dimension()
118 php_dom_nodelist_get_item_into_zval(php_dom_obj_from_obj(object)->ptr, index.lval, rv); in dom_html_collection_read_dimension()
129 dom_nodelist_dimension_index index = dom_modern_nodelist_get_index(member); in dom_html_collection_has_dimension() local
130 if (UNEXPECTED(index.type == DOM_NODELIST_DIM_ILLEGAL)) { in dom_html_collection_has_dimension()
135 if (index.type == DOM_NODELIST_DIM_STRING) { in dom_html_collection_has_dimension()
136 return dom_html_collection_named_item(index.str, object).node != NULL; in dom_html_collection_has_dimension()
138 ZEND_ASSERT(index.type == DOM_NODELIST_DIM_LONG); in dom_html_collection_has_dimension()
139 return index.lval >= 0 && index.lval < php_dom_get_nodelist_length(php_dom_obj_from_obj(object)); in dom_html_collection_has_dimension()