summaryrefslogtreecommitdiff
path: root/src/parse/properties/utils.h
blob: c04a2aabe956341cf80d0de6039fb574cf83b972 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * This file is part of LibCSS.
 * Licensed under the MIT License,
 *                http://www.opensource.org/licenses/mit-license.php
 * Copyright 2008 John-Mark Bell <jmb@netsurf-browser.org>
 */

#ifndef css_parse_properties_utils_h_
#define css_parse_properties_utils_h_

#include "parse/language.h"

css_error parse_colour_specifier(css_language *c,
		const parserutils_vector *vector, int *ctx,
		uint32_t *result);
css_error parse_named_colour(css_language *c, lwc_string *data, 
		uint32_t *result);
css_error parse_hash_colour(lwc_string *data, uint32_t *result);
css_error parse_unit_specifier(css_language *c,
		const parserutils_vector *vector, int *ctx,
		uint32_t default_unit,
		css_fixed *length, uint32_t *unit);
css_error parse_unit_keyword(const char *ptr, size_t len, 
		css_unit *unit);

#endif