php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
token_attr.c
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-2020 Alexander Borisov
3 *
4 * Author: Alexander Borisov <borisov@lexbor.com>
5 */
6
8
9
15
16void
21
27
28const lxb_char_t *
30{
31 if (attr->name == NULL) {
32 if (length != NULL) {
33 *length = 0;
34 }
35
36 return NULL;
37 }
38
39 if (length != NULL) {
40 *length = attr->name->entry.length;
41 }
42
43 return lexbor_hash_entry_str(&attr->name->entry);
44}
void * lexbor_dobject_calloc(lexbor_dobject_t *dobject)
Definition dobject.c:123
void * lexbor_dobject_free(lexbor_dobject_t *dobject, void *data)
Definition dobject.c:135
memset(ptr, 0, type->size)
new_type attr
Definition ffi.c:4364
#define NULL
Definition gdcache.h:45
lxb_inline lxb_char_t * lexbor_hash_entry_str(const lexbor_hash_entry_t *entry)
Definition hash.h:161
lxb_html_token_attr_t * lxb_html_token_attr_destroy(lxb_html_token_attr_t *attr, lexbor_dobject_t *dobj)
Definition token_attr.c:23
lxb_html_token_attr_t * lxb_html_token_attr_create(lexbor_dobject_t *dobj)
Definition token_attr.c:11
void lxb_html_token_attr_clean(lxb_html_token_attr_t *attr)
Definition token_attr.c:17
const lxb_char_t * lxb_html_token_attr_name(lxb_html_token_attr_t *attr, size_t *length)
Definition token_attr.c:29
struct lxb_html_token_attr lxb_html_token_attr_t
Definition token_attr.h:22
unsigned char lxb_char_t
Definition types.h:27