Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
htmlparse.h File Reference
#include <cgraph/list.h>
#include <common/htmllex.h>
#include <common/htmltable.h>
#include <common/textspan.h>
#include <gvc/gvcext.h>
#include <util/agxbuf.h>
#include <util/strview.h>
Include dependency graph for htmlparse.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  HTMLSTYPE
 
struct  htmlparserstate_s
 
struct  htmllexstate_t
 
struct  htmlscan_s
 

Macros

#define HTMLDEBUG   0
 
#define HTMLTOKENTYPE
 
#define T_end_br   258
 
#define T_end_img   259
 
#define T_row   260
 
#define T_end_row   261
 
#define T_html   262
 
#define T_end_html   263
 
#define T_end_table   264
 
#define T_end_cell   265
 
#define T_end_font   266
 
#define T_string   267
 
#define T_error   268
 
#define T_n_italic   269
 
#define T_n_bold   270
 
#define T_n_underline   271
 
#define T_n_overline   272
 
#define T_n_sup   273
 
#define T_n_sub   274
 
#define T_n_s   275
 
#define T_HR   276
 
#define T_hr   277
 
#define T_end_hr   278
 
#define T_VR   279
 
#define T_vr   280
 
#define T_end_vr   281
 
#define T_BR   282
 
#define T_br   283
 
#define T_IMG   284
 
#define T_img   285
 
#define T_table   286
 
#define T_cell   287
 
#define T_font   288
 
#define T_italic   289
 
#define T_bold   290
 
#define T_underline   291
 
#define T_overline   292
 
#define T_sup   293
 
#define T_sub   294
 
#define T_s   295
 
#define HTMLSTYPE_IS_TRIVIAL   1
 
#define HTMLSTYPE_IS_DECLARED   1
 

Typedefs

typedef union HTMLSTYPE HTMLSTYPE
 

Enumerations

enum  htmltokentype {
  T_end_br = 258 , T_end_img = 259 , T_row = 260 , T_end_row = 261 ,
  T_html = 262 , T_end_html = 263 , T_end_table = 264 , T_end_cell = 265 ,
  T_end_font = 266 , T_string = 267 , T_error = 268 , T_n_italic = 269 ,
  T_n_bold = 270 , T_n_underline = 271 , T_n_overline = 272 , T_n_sup = 273 ,
  T_n_sub = 274 , T_n_s = 275 , T_HR = 276 , T_hr = 277 ,
  T_end_hr = 278 , T_VR = 279 , T_vr = 280 , T_end_vr = 281 ,
  T_BR = 282 , T_br = 283 , T_IMG = 284 , T_img = 285 ,
  T_table = 286 , T_cell = 287 , T_font = 288 , T_italic = 289 ,
  T_bold = 290 , T_underline = 291 , T_overline = 292 , T_sup = 293 ,
  T_sub = 294 , T_s = 295
}
 

Functions

int htmlparse (htmlscan_t *scanner)
 
static void free_ti (textspan_t item)
 
static void free_hi (htextspan_t item)
 

Macro Definition Documentation

◆ HTMLDEBUG

#define HTMLDEBUG   0

Definition at line 48 of file htmlparse.h.

◆ HTMLSTYPE_IS_DECLARED

#define HTMLSTYPE_IS_DECLARED   1

Definition at line 171 of file htmlparse.h.

◆ HTMLSTYPE_IS_TRIVIAL

#define HTMLSTYPE_IS_TRIVIAL   1

Definition at line 170 of file htmlparse.h.

◆ HTMLTOKENTYPE

#define HTMLTOKENTYPE

Definition at line 69 of file htmlparse.h.

◆ T_bold

#define T_bold   290

Definition at line 145 of file htmlparse.h.

◆ T_BR

#define T_BR   282

Definition at line 137 of file htmlparse.h.

◆ T_br

#define T_br   283

Definition at line 138 of file htmlparse.h.

◆ T_cell

#define T_cell   287

Definition at line 142 of file htmlparse.h.

◆ T_end_br

#define T_end_br   258

Definition at line 113 of file htmlparse.h.

◆ T_end_cell

#define T_end_cell   265

Definition at line 120 of file htmlparse.h.

◆ T_end_font

#define T_end_font   266

Definition at line 121 of file htmlparse.h.

◆ T_end_hr

#define T_end_hr   278

Definition at line 133 of file htmlparse.h.

◆ T_end_html

#define T_end_html   263

Definition at line 118 of file htmlparse.h.

◆ T_end_img

#define T_end_img   259

Definition at line 114 of file htmlparse.h.

◆ T_end_row

#define T_end_row   261

Definition at line 116 of file htmlparse.h.

◆ T_end_table

#define T_end_table   264

Definition at line 119 of file htmlparse.h.

◆ T_end_vr

#define T_end_vr   281

Definition at line 136 of file htmlparse.h.

◆ T_error

#define T_error   268

Definition at line 123 of file htmlparse.h.

◆ T_font

#define T_font   288

Definition at line 143 of file htmlparse.h.

◆ T_HR

#define T_HR   276

Definition at line 131 of file htmlparse.h.

◆ T_hr

#define T_hr   277

Definition at line 132 of file htmlparse.h.

◆ T_html

#define T_html   262

Definition at line 117 of file htmlparse.h.

◆ T_IMG

#define T_IMG   284

Definition at line 139 of file htmlparse.h.

◆ T_img

#define T_img   285

Definition at line 140 of file htmlparse.h.

◆ T_italic

#define T_italic   289

Definition at line 144 of file htmlparse.h.

◆ T_n_bold

#define T_n_bold   270

Definition at line 125 of file htmlparse.h.

◆ T_n_italic

#define T_n_italic   269

Definition at line 124 of file htmlparse.h.

◆ T_n_overline

#define T_n_overline   272

Definition at line 127 of file htmlparse.h.

◆ T_n_s

#define T_n_s   275

Definition at line 130 of file htmlparse.h.

◆ T_n_sub

#define T_n_sub   274

Definition at line 129 of file htmlparse.h.

◆ T_n_sup

#define T_n_sup   273

Definition at line 128 of file htmlparse.h.

◆ T_n_underline

#define T_n_underline   271

Definition at line 126 of file htmlparse.h.

◆ T_overline

#define T_overline   292

Definition at line 147 of file htmlparse.h.

◆ T_row

#define T_row   260

Definition at line 115 of file htmlparse.h.

◆ T_s

#define T_s   295

Definition at line 150 of file htmlparse.h.

◆ T_string

#define T_string   267

Definition at line 122 of file htmlparse.h.

◆ T_sub

#define T_sub   294

Definition at line 149 of file htmlparse.h.

◆ T_sup

#define T_sup   293

Definition at line 148 of file htmlparse.h.

◆ T_table

#define T_table   286

Definition at line 141 of file htmlparse.h.

◆ T_underline

#define T_underline   291

Definition at line 146 of file htmlparse.h.

◆ T_VR

#define T_VR   279

Definition at line 134 of file htmlparse.h.

◆ T_vr

#define T_vr   280

Definition at line 135 of file htmlparse.h.

Typedef Documentation

◆ HTMLSTYPE

typedef union HTMLSTYPE HTMLSTYPE

Definition at line 169 of file htmlparse.h.

Enumeration Type Documentation

◆ htmltokentype

Enumerator
T_end_br 
T_end_img 
T_row 
T_end_row 
T_html 
T_end_html 
T_end_table 
T_end_cell 
T_end_font 
T_string 
T_error 
T_n_italic 
T_n_bold 
T_n_underline 
T_n_overline 
T_n_sup 
T_n_sub 
T_n_s 
T_HR 
T_hr 
T_end_hr 
T_VR 
T_vr 
T_end_vr 
T_BR 
T_br 
T_IMG 
T_img 
T_table 
T_cell 
T_font 
T_italic 
T_bold 
T_underline 
T_overline 
T_sup 
T_sub 
T_s 

Definition at line 70 of file htmlparse.h.

Function Documentation

◆ free_hi()

static void free_hi ( htextspan_t  item)
inlinestatic

Definition at line 189 of file htmlparse.h.

References free(), and HTMLSTYPE::i.

Here is the call graph for this function:

◆ free_ti()

static void free_ti ( textspan_t  item)
inlinestatic

Definition at line 183 of file htmlparse.h.

References free().

Here is the call graph for this function:

◆ htmlparse()

int htmlparse ( htmlscan_t scanner)