ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
reflow_css_internal.h
Go to the documentation of this file.
1
25#pragma once
26
27#include <stddef.h>
28
29#include "ra8_attributes.h"
30#include "reflow_css.h"
31
55
79
104RA8_PRIV bool priv_reflow_css_ci_eq(const char* s, size_t len, const char* lit);
105
128RA8_PRIV const char* priv_reflow_css_trim(const char* s, size_t* len);
129
154RA8_PRIV void priv_reflow_css_parse_decls(const char* s, size_t len, ra8_css_style_t* out);
155
182 const char* sel,
183 size_t sel_len,
184 const char* block,
185 size_t block_len);
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
Minimal content-CSS cascade for the reflow ereader engine (#111).
void priv_reflow_css_parse_one_block(ra8_css_sheet_t *sheet, const char *sel, size_t sel_len, const char *block, size_t block_len)
Dispatch one selector|@rule { block }: at-rule vs.
void priv_reflow_css_parse_decls(const char *s, size_t len, ra8_css_style_t *out)
Parse a prop:value; ... declaration body (no braces) into out.
Definition reflow_css.c:774
char priv_reflow_css_lower(char c)
ASCII-fold one byte to lower case.
Definition reflow_css.c:133
const char * priv_reflow_css_trim(const char *s, size_t *len)
Trim leading + trailing whitespace from s[0..*len); returns start.
Definition reflow_css.c:228
bool priv_reflow_css_ci_eq(const char *s, size_t len, const char *lit)
Case-insensitive compare of span s[0..len) against NUL literal lit.
Definition reflow_css.c:162
bool priv_reflow_css_is_ws(char c)
True for CSS whitespace (space / tab / newline / CR / FF).
Definition reflow_css.c:106
A parsed stylesheet: rule + @font-face arrays and a name byte pool.
Definition reflow_css.h:212
A declared or computed style: a presence mask plus property values.
Definition reflow_css.h:122