ELinks 0.16.1.1
parser.h File Reference
#include "util/lists.h"
Include dependency graph for parser.h:
This graph shows which files directly or indirectly include this file:

Functions

void css_parse_properties (struct css_property list *props, struct scanner *scanner)
 This function takes a semicolon separated list of declarations from the given string, parses them to atoms, and chains the newly created struct css_property objects to the specified list.
void css_parse_stylesheet (struct css_stylesheet *css, struct uri *base_uri, const char *string, const char *end)
 Parses the string and adds any recognized selectors + properties to the given stylesheet css.

Detailed Description

This is interface for the value parser. It is intended to be used only internally inside of the CSS engine.

Function Documentation

◆ css_parse_properties()

void css_parse_properties ( struct css_property list * props,
struct scanner * scanner )

This function takes a semicolon separated list of declarations from the given string, parses them to atoms, and chains the newly created struct css_property objects to the specified list.

Returns
positive value in case it recognized a property in the given string, or zero in case of an error.

◆ css_parse_stylesheet()

void css_parse_stylesheet ( struct css_stylesheet * css,
struct uri * base_uri,
const char * string,
const char * end )

Parses the string and adds any recognized selectors + properties to the given stylesheet css.

If the selector is already in the stylesheet it properties are added to the that selector.