libcss
Loading...
Searching...
No Matches
Macros | Functions
quotes.c File Reference
#include <assert.h>
#include <string.h>
#include "bytecode/bytecode.h"
#include "bytecode/opcodes.h"
#include "parse/properties/properties.h"
#include "parse/properties/utils.h"

Macros

#define CSS_FIRST_APPEND(CSSVAL)   css__stylesheet_style_append(result, first?buildOPV(CSS_PROP_QUOTES, 0, CSSVAL):CSSVAL)
 

Functions

css_error css__parse_quotes (css_language *c, const parserutils_vector *vector, int32_t *ctx, css_style *result)
 

Macro Definition Documentation

◆ CSS_FIRST_APPEND

#define CSS_FIRST_APPEND (   CSSVAL)    css__stylesheet_style_append(result, first?buildOPV(CSS_PROP_QUOTES, 0, CSSVAL):CSSVAL)

Function Documentation

◆ css__parse_quotes()

css_error css__parse_quotes ( css_language c,
const parserutils_vector *  vector,
int32_t *  ctx,
css_style result 
)

Parse quotes

Parameters
cParsing context
vectorVector of tokens to process
ctxPointer to vector iteration context
resultPointer to location to receive resulting style
Returns
CSS_OK on success, CSS_NOMEM on memory exhaustion, CSS_INVALID if the input is not valid

Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.