php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
token_list.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Copyright (c) The PHP Group |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | https://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Authors: Niels Dossche <nielsdos@php.net> |
14 +----------------------------------------------------------------------+
15*/
16
17#ifndef TOKEN_LIST_H
18#define TOKEN_LIST_H
19
20typedef struct dom_token_list_object {
22 /* Used to check if the token set is up to date. */
24 php_libxml_cache_tag cache_tag;
27
28static inline dom_token_list_object *php_dom_token_list_from_obj(zend_object *obj)
29{
30 return (dom_token_list_object *)((char *) obj - XtOffsetOf(dom_token_list_object, dom.std));
31}
32
33static inline dom_token_list_object *php_dom_token_list_from_dom_obj(dom_object *obj)
34{
35 return (dom_token_list_object *)((char *) obj - XtOffsetOf(dom_token_list_object, dom));
36}
37
41int dom_token_list_has_dimension(zend_object *object, zval *offset, int check_empty);
43
44#endif
zend_ffi_type * type
Definition ffi.c:3812
zend_long offset
zval rv
Definition session.c:1024
php_libxml_cache_tag cache_tag
Definition token_list.h:24
zend_object_iterator * dom_token_list_get_iterator(zend_class_entry *ce, zval *object, int by_ref)
void dom_token_list_free_obj(zend_object *object)
void dom_token_list_ctor(dom_token_list_object *intern, dom_object *element_obj)
int dom_token_list_has_dimension(zend_object *object, zval *offset, int check_empty)
zval * dom_token_list_read_dimension(zend_object *object, zval *offset, int type, zval *rv)
struct _dom_object dom_object
struct _zval_struct zval
struct _zend_object_iterator zend_object_iterator
#define XtOffsetOf(s_type, field)
struct _zend_class_entry zend_class_entry
struct _zend_object zend_object
struct _zend_array HashTable
Definition zend_types.h:386