ELinks 0.16.1.1
parse.h File Reference
This graph shows which files directly or indirectly include this file:

Macros

#define get_attr_val(e, name, cp)
#define get_lit_attr_val(e, name, cp)
#define get_url_val(e, name, cp)
#define has_attr(e, name, cp)

Typedefs

typedef void element_handler_T(struct html_context *, char *attr, char *html, char *eof, char **end)

Enumerations

enum  html_attr_flags { HTML_ATTR_NONE = 0 , HTML_ATTR_TEST = 1 , HTML_ATTR_EAT_NL = 2 , HTML_ATTR_LITERAL_NL = 8 }

Functions

char * get_attr_value (char *e, const char *name, int cp, enum html_attr_flags flags)
void parse_html (char *html, char *eof, struct part *part, char *head, struct html_context *html_context)
int parse_element (char *, char *, char **, int *, char **, char **)
int get_num (char *, const char *, int)
int get_num2 (char *)
int get_width (char *, const char *, int, struct html_context *)
int get_width2 (char *, int, struct html_context *)
char * skip_comment (char *, char *)
void scan_http_equiv (char *s, char *eof, struct string *head, struct string *title, int cp)
int supports_html_media_attr (const char *media)
void free_tags_lookup (void)
void init_tags_lookup (void)
const char * count_newline_entities (const char *html, const char *eof, int *newlines_out)

Macro Definition Documentation

◆ get_attr_val

#define get_attr_val ( e,
name,
cp )
Value:
char * get_attr_value(char *e, const char *name, int cp, enum html_attr_flags flags)
Definition parse.c:141
@ HTML_ATTR_NONE
Definition parse.h:16

◆ get_lit_attr_val

#define get_lit_attr_val ( e,
name,
cp )
Value:
@ HTML_ATTR_LITERAL_NL
Definition parse.h:35

◆ get_url_val

#define get_url_val ( e,
name,
cp )
Value:
@ HTML_ATTR_EAT_NL
Definition parse.h:27

◆ has_attr

#define has_attr ( e,
name,
cp )
Value:
(!!get_attr_value(e, name, cp, HTML_ATTR_TEST))
@ HTML_ATTR_TEST
Definition parse.h:22

Typedef Documentation

◆ element_handler_T

typedef void element_handler_T(struct html_context *, char *attr, char *html, char *eof, char **end)

Enumeration Type Documentation

◆ html_attr_flags

Enumerator
HTML_ATTR_NONE 
HTML_ATTR_TEST 
HTML_ATTR_EAT_NL 
HTML_ATTR_LITERAL_NL 

Function Documentation

◆ count_newline_entities()

const char * count_newline_entities ( const char * html,
const char * eof,
int * newlines_out )

◆ free_tags_lookup()

void free_tags_lookup ( void )

◆ get_attr_value()

char * get_attr_value ( char * e,
const char * name,
int cp,
enum html_attr_flags flags )

◆ get_num()

int get_num ( char * a,
const char * name,
int cp )

◆ get_num2()

int get_num2 ( char * al)

◆ get_width()

int get_width ( char * a,
const char * name,
int limited,
struct html_context * html_context )

◆ get_width2()

int get_width2 ( char * value,
int limited,
struct html_context * html_context )

◆ init_tags_lookup()

void init_tags_lookup ( void )

◆ parse_element()

int parse_element ( char * e,
char * eof,
char ** name,
int * namelen,
char ** attr,
char ** end )

◆ parse_html()

void parse_html ( char * html,
char * eof,
struct part * part,
char * head,
struct html_context * html_context )

◆ scan_http_equiv()

void scan_http_equiv ( char * s,
char * eof,
struct string * head,
struct string * title,
int cp )

◆ skip_comment()

char * skip_comment ( char * html,
char * eof )

◆ supports_html_media_attr()

int supports_html_media_attr ( const char * media)