ELinks 0.18.0
value.c File Reference

CSS property value parser. More...

#include <stdlib.h>
#include <string.h>
#include "elinks.h"
#include "document/css/property.h"
#include "document/css/scanner.h"
#include "document/css/value.h"
#include "util/color.h"
#include "util/error.h"
#include "util/memory.h"
#include "util/string.h"
Include dependency graph for value.c:

Functions

int css_parse_color_value (struct css_property_info *propinfo, union css_property_value *value, struct scanner *scanner)
int css_parse_background_value (struct css_property_info *propinfo, union css_property_value *value, struct scanner *scanner)
int css_parse_font_style_value (struct css_property_info *propinfo, union css_property_value *value, struct scanner *scanner)
int css_parse_font_weight_value (struct css_property_info *propinfo, union css_property_value *value, struct scanner *scanner)
int css_parse_list_style_value (struct css_property_info *propinfo, union css_property_value *value, struct scanner *scanner)
int css_parse_text_align_value (struct css_property_info *propinfo, union css_property_value *value, struct scanner *scanner)
int css_parse_text_decoration_value (struct css_property_info *propinfo, union css_property_value *value, struct scanner *scanner)
int css_parse_white_space_value (struct css_property_info *propinfo, union css_property_value *value, struct scanner *scanner)
int css_parse_display_value (struct css_property_info *propinfo, union css_property_value *value, struct scanner *scanner)
int css_parse_value (struct css_property_info *propinfo, union css_property_value *value, struct scanner *scanner)
 This function takes a value of a specified type from the given scanner and converts it to a reasonable struct css_property-ready form.

Detailed Description

CSS property value parser.

Function Documentation

◆ css_parse_background_value()

int css_parse_background_value ( struct css_property_info * propinfo,
union css_property_value * value,
struct scanner * scanner )

Takes no parser_data.

◆ css_parse_color_value()

int css_parse_color_value ( struct css_property_info * propinfo,
union css_property_value * value,
struct scanner * scanner )

Takes no parser_data.

◆ css_parse_display_value()

int css_parse_display_value ( struct css_property_info * propinfo,
union css_property_value * value,
struct scanner * scanner )

Takes no parser_data.

◆ css_parse_font_style_value()

int css_parse_font_style_value ( struct css_property_info * propinfo,
union css_property_value * value,
struct scanner * scanner )

Takes no parser_data.

◆ css_parse_font_weight_value()

int css_parse_font_weight_value ( struct css_property_info * propinfo,
union css_property_value * value,
struct scanner * scanner )

Takes no parser_data.

◆ css_parse_list_style_value()

int css_parse_list_style_value ( struct css_property_info * propinfo,
union css_property_value * value,
struct scanner * scanner )

Takes no parser_data.

◆ css_parse_text_align_value()

int css_parse_text_align_value ( struct css_property_info * propinfo,
union css_property_value * value,
struct scanner * scanner )

Takes no parser_data.

◆ css_parse_text_decoration_value()

int css_parse_text_decoration_value ( struct css_property_info * propinfo,
union css_property_value * value,
struct scanner * scanner )

Takes no parser_data.

◆ css_parse_value()

int css_parse_value ( struct css_property_info * propinfo,
union css_property_value * value,
struct scanner * scanner )

This function takes a value of a specified type from the given scanner and converts it to a reasonable struct css_property-ready form.

It returns positive integer upon success, zero upon parse error, and moves the string pointer to the byte after the value end.

◆ css_parse_white_space_value()

int css_parse_white_space_value ( struct css_property_info * propinfo,
union css_property_value * value,
struct scanner * scanner )

Takes no parser_data.