1#ifndef __CSSPARSER_HH__
2#define __CSSPARSER_HH__
bool parseValue(CssPropertyName prop, CssValueType type, CssPropertyValue *val)
bool skipString(int c, const char *string)
Skip string str if it is found in the input buffer.
bool tokenMatchesProperty(CssPropertyName prop, CssValueType *type)
bool parseSimpleSelector(CssSimpleSelector *selector)
bool parseRgbColorComponent(int32_t *cc, int *percentage)
void parseDeclaration(CssPropertyList *props, CssPropertyList *importantProps)
static void parseDeclarationBlock(const DilloUrl *baseUrl, const char *buf, int buflen, CssPropertyList *props, CssPropertyList *propsImortant)
void parseImport(DilloHtml *html)
bool parseRgbColor(int32_t *c)
static const int maxStrLen
void ungetChar()
Undoes the last getChar().
static void parse(DilloHtml *html, const DilloUrl *baseUrl, CssContext *context, const char *buf, int buflen, CssOrigin origin)
int getChar()
Gets the next character from the buffer, or EOF.
static const char * propertyNameString(CssPropertyName name)
CssSelector * parseSelector()
A list of CssProperty objects.