diff options
Diffstat (limited to 'src/parse/properties/utils.h')
-rw-r--r-- | src/parse/properties/utils.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/parse/properties/utils.h b/src/parse/properties/utils.h new file mode 100644 index 0000000..923ffb5 --- /dev/null +++ b/src/parse/properties/utils.h @@ -0,0 +1,29 @@ +/* + * 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_important(css_language *c, + const parserutils_vector *vector, int *ctx, + uint8_t *result); +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 |