#include <string.h>
#include <glib.h>
#include "cr-simple-sel.h"
Go to the source code of this file.
Functions | |
CRSimpleSel * | cr_simple_sel_new (void) |
The constructor of CRSimpleSel. | |
CRSimpleSel * | cr_simple_sel_append_simple_sel (CRSimpleSel *a_this, CRSimpleSel *a_sel) |
Appends a simpe selector to the current list of simple selector. | |
CRSimpleSel * | cr_simple_sel_prepend_simple_sel (CRSimpleSel *a_this, CRSimpleSel *a_sel) |
Prepends a simple selector to the current list of simple selectors. | |
guchar * | cr_simple_sel_to_string (CRSimpleSel *a_this) |
enum CRStatus | cr_simple_sel_dump (CRSimpleSel *a_this, FILE *a_fp) |
Dumps the selector to a file. | |
enum CRStatus | cr_simple_sel_compute_specificity (CRSimpleSel *a_this) |
Computes the selector (combinator separated list of simple selectors) as defined in the css2 spec in chapter 6.4.3. | |
void | cr_simple_sel_destroy (CRSimpleSel *a_this) |
The destructor of the current instance of CRSimpleSel. |
|
Appends a simpe selector to the current list of simple selector.
Definition at line 61 of file cr-simple-sel.c. References _CRSimpleSel::next, and _CRSimpleSel::prev. |
|
Computes the selector (combinator separated list of simple selectors) as defined in the css2 spec in chapter 6.4.3.
Definition at line 207 of file cr-simple-sel.c. References _CRSimpleSel::add_sel, CR_BAD_PARAM_ERROR, CR_OK, ID_ADD_SELECTOR, _CRSimpleSel::name, _CRSimpleSel::next, _CRAdditionalSel::next, NO_ADD_SELECTOR, PSEUDO_CLASS_ADD_SELECTOR, _CRAdditionalSel::type, _CRSimpleSel::type_mask, and TYPE_SELECTOR. |
|
The destructor of the current instance of CRSimpleSel.
Definition at line 266 of file cr-simple-sel.c. References _CRSimpleSel::add_sel, cr_additional_sel_destroy(), _CRSimpleSel::name, and _CRSimpleSel::next. Referenced by cr_parser_parse_ruleset(), and cr_selector_destroy(). |
|
Dumps the selector to a file. TODO: add the support of unicode in the dump.
Definition at line 180 of file cr-simple-sel.c. References CR_BAD_PARAM_ERROR, CR_OK, and cr_simple_sel_to_string(). |
|
The constructor of CRSimpleSel.
Definition at line 38 of file cr-simple-sel.c. References cr_utils_trace_info. |
|
Prepends a simple selector to the current list of simple selectors.
Definition at line 85 of file cr-simple-sel.c. References _CRSimpleSel::next, and _CRSimpleSel::prev. |
|
Definition at line 99 of file cr-simple-sel.c. References _CRSimpleSel::add_sel, COMB_GT, COMB_PLUS, COMB_WS, _CRSimpleSel::combinator, cr_additional_sel_to_string(), _CRSimpleSel::name, and _CRSimpleSel::next. Referenced by cr_selector_to_string(), and cr_simple_sel_dump(). |