php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
tokenizer.h File Reference

Go to the source code of this file.

Data Structures

struct  lxb_css_syntax_tokenizer_cache_t
 
struct  lxb_css_syntax_tokenizer
 

Typedefs

typedef const lxb_char_t *(* lxb_css_syntax_tokenizer_state_f) (lxb_css_syntax_tokenizer_t *tkz, lxb_css_syntax_token_t *token, const lxb_char_t *data, const lxb_char_t *end)
 
typedef lxb_status_t(* lxb_css_syntax_tokenizer_chunk_f) (lxb_css_syntax_tokenizer_t *tkz, const lxb_char_t **data, const lxb_char_t **end, void *ctx)
 

Enumerations

enum  lxb_css_syntax_tokenizer_opt { LXB_CSS_SYNTAX_TOKENIZER_OPT_UNDEF = 0x00 }
 

Functions

LXB_API lxb_css_syntax_tokenizer_tlxb_css_syntax_tokenizer_create (void)
 
LXB_API lxb_status_t lxb_css_syntax_tokenizer_init (lxb_css_syntax_tokenizer_t *tkz)
 
LXB_API lxb_status_t lxb_css_syntax_tokenizer_clean (lxb_css_syntax_tokenizer_t *tkz)
 
LXB_API lxb_css_syntax_tokenizer_tlxb_css_syntax_tokenizer_destroy (lxb_css_syntax_tokenizer_t *tkz)
 
LXB_API lxb_status_t lxb_css_syntax_tokenizer_next_chunk (lxb_css_syntax_tokenizer_t *tkz, const lxb_char_t **data, const lxb_char_t **end)
 
LXB_API bool lxb_css_syntax_tokenizer_lookup_colon (lxb_css_syntax_tokenizer_t *tkz)
 
LXB_API bool lxb_css_syntax_tokenizer_lookup_important (lxb_css_syntax_tokenizer_t *tkz, lxb_css_syntax_token_type_t stop, const lxb_char_t stop_ch)
 
LXB_API bool lxb_css_syntax_tokenizer_lookup_declaration_ws_end (lxb_css_syntax_tokenizer_t *tkz, lxb_css_syntax_token_type_t stop, const lxb_char_t stop_ch)
 
lxb_inline lxb_status_t lxb_css_syntax_tokenizer_status (lxb_css_syntax_tokenizer_t *tkz)
 
lxb_inline void lxb_css_syntax_tokenizer_chunk_cb_set (lxb_css_syntax_tokenizer_t *tkz, lxb_css_syntax_tokenizer_chunk_f cb, void *ctx)
 
lxb_inline void lxb_css_syntax_tokenizer_buffer_set (lxb_css_syntax_tokenizer_t *tkz, const lxb_char_t *data, size_t size)
 
LXB_API lxb_status_t lxb_css_syntax_tokenizer_status_noi (lxb_css_syntax_tokenizer_t *tkz)
 

Typedef Documentation

◆ lxb_css_syntax_tokenizer_chunk_f

typedef lxb_status_t(* lxb_css_syntax_tokenizer_chunk_f) (lxb_css_syntax_tokenizer_t *tkz, const lxb_char_t **data, const lxb_char_t **end, void *ctx)

Definition at line 26 of file tokenizer.h.

◆ lxb_css_syntax_tokenizer_state_f

typedef const lxb_char_t *(* lxb_css_syntax_tokenizer_state_f) (lxb_css_syntax_tokenizer_t *tkz, lxb_css_syntax_token_t *token, const lxb_char_t *data, const lxb_char_t *end)

Definition at line 21 of file tokenizer.h.

Enumeration Type Documentation

◆ lxb_css_syntax_tokenizer_opt

Enumerator
LXB_CSS_SYNTAX_TOKENIZER_OPT_UNDEF 

Definition at line 32 of file tokenizer.h.

Function Documentation

◆ lxb_css_syntax_tokenizer_buffer_set()

lxb_inline void lxb_css_syntax_tokenizer_buffer_set ( lxb_css_syntax_tokenizer_t * tkz,
const lxb_char_t * data,
size_t size )

Definition at line 125 of file tokenizer.h.

◆ lxb_css_syntax_tokenizer_chunk_cb_set()

lxb_inline void lxb_css_syntax_tokenizer_chunk_cb_set ( lxb_css_syntax_tokenizer_t * tkz,
lxb_css_syntax_tokenizer_chunk_f cb,
void * ctx )

Definition at line 116 of file tokenizer.h.

◆ lxb_css_syntax_tokenizer_clean()

LXB_API lxb_status_t lxb_css_syntax_tokenizer_clean ( lxb_css_syntax_tokenizer_t * tkz)

Definition at line 136 of file tokenizer.c.

◆ lxb_css_syntax_tokenizer_create()

LXB_API lxb_css_syntax_tokenizer_t * lxb_css_syntax_tokenizer_create ( void )

Definition at line 65 of file tokenizer.c.

◆ lxb_css_syntax_tokenizer_destroy()

LXB_API lxb_css_syntax_tokenizer_t * lxb_css_syntax_tokenizer_destroy ( lxb_css_syntax_tokenizer_t * tkz)

Definition at line 157 of file tokenizer.c.

◆ lxb_css_syntax_tokenizer_init()

LXB_API lxb_status_t lxb_css_syntax_tokenizer_init ( lxb_css_syntax_tokenizer_t * tkz)

Definition at line 71 of file tokenizer.c.

◆ lxb_css_syntax_tokenizer_lookup_colon()

LXB_API bool lxb_css_syntax_tokenizer_lookup_colon ( lxb_css_syntax_tokenizer_t * tkz)

Definition at line 424 of file tokenizer.c.

◆ lxb_css_syntax_tokenizer_lookup_declaration_ws_end()

LXB_API bool lxb_css_syntax_tokenizer_lookup_declaration_ws_end ( lxb_css_syntax_tokenizer_t * tkz,
lxb_css_syntax_token_type_t stop,
const lxb_char_t stop_ch )

Definition at line 649 of file tokenizer.c.

◆ lxb_css_syntax_tokenizer_lookup_important()

LXB_API bool lxb_css_syntax_tokenizer_lookup_important ( lxb_css_syntax_tokenizer_t * tkz,
lxb_css_syntax_token_type_t stop,
const lxb_char_t stop_ch )

Definition at line 486 of file tokenizer.c.

◆ lxb_css_syntax_tokenizer_next_chunk()

LXB_API lxb_status_t lxb_css_syntax_tokenizer_next_chunk ( lxb_css_syntax_tokenizer_t * tkz,
const lxb_char_t ** data,
const lxb_char_t ** end )

Definition at line 392 of file tokenizer.c.

◆ lxb_css_syntax_tokenizer_status()

lxb_inline lxb_status_t lxb_css_syntax_tokenizer_status ( lxb_css_syntax_tokenizer_t * tkz)

Definition at line 110 of file tokenizer.h.

◆ lxb_css_syntax_tokenizer_status_noi()

LXB_API lxb_status_t lxb_css_syntax_tokenizer_status_noi ( lxb_css_syntax_tokenizer_t * tkz)

Definition at line 706 of file tokenizer.c.