#include <stdio.h>
#include "cr-utils.h"
#include "cr-simple-sel.h"
#include "cr-parsing-location.h"
Go to the source code of this file.
Data Structures | |
struct | _CRSelector |
Abstracts a CSS2 selector as defined in the right part of the 'ruleset" production in the appendix D.1 of the css2 spec. More... | |
Functions | |
CRSelector * | cr_selector_new (CRSimpleSel *a_sel_expr) |
Creates a new instance of CRSelector. | |
CRSelector * | cr_selector_parse_from_buf (const guchar *a_char_buf, enum CREncoding a_enc) |
CRSelector * | cr_selector_append (CRSelector *a_this, CRSelector *a_new) |
Appends a new instance of CRSelector to the current selector list. | |
CRSelector * | cr_selector_append_simple_sel (CRSelector *a_this, CRSimpleSel *a_simple_sel) |
append a simple selector to the current CRSelector list. | |
CRSelector * | cr_selector_prepend (CRSelector *a_this, CRSelector *a_new) |
Prepends an element to the CRSelector list. | |
guchar * | cr_selector_to_string (CRSelector *a_this) |
void | cr_selector_dump (CRSelector *a_this, FILE *a_fp) |
Serializes the current instance of CRSelector to a file. | |
void | cr_selector_ref (CRSelector *a_this) |
Increments the ref count of the current instance of CRSelector. | |
gboolean | cr_selector_unref (CRSelector *a_this) |
Decrements the ref count of the current instance of CRSelector. | |
void | cr_selector_destroy (CRSelector *a_this) |
Destroys the selector list. | |
Variables | |
typedefG_BEGIN_DECLS struct _CRSelector | CRSelector |
Definition in file cr-selector.h.
|
Appends a new instance of CRSelector to the current selector list.
Definition at line 70 of file cr-selector.c. References CRSelector, _CRSelector::next, and _CRSelector::prev. Referenced by cr_selector_append_simple_sel(). |
|
append a simple selector to the current CRSelector list.
Definition at line 113 of file cr-selector.c. References cr_selector_append(), cr_selector_new(), CRSelector, and CRSimpleSel. |
|
Destroys the selector list.
Definition at line 230 of file cr-selector.c. References cr_simple_sel_destroy(), CRSelector, _CRSimpleSel::next, and _CRSelector::simple_sel. Referenced by cr_selector_unref(). |
|
Serializes the current instance of CRSelector to a file.
Definition at line 172 of file cr-selector.c. References cr_selector_to_string(). |
|
Creates a new instance of CRSelector.
Definition at line 35 of file cr-selector.c. References cr_utils_trace_info, CRSelector, CRSimpleSel, and _CRSelector::simple_sel. Referenced by cr_selector_append_simple_sel(). |
|
Definition at line 50 of file cr-selector.c. References cr_parser_new_from_buf(), and CRParser. |
|
Prepends an element to the CRSelector list.
Definition at line 94 of file cr-selector.c. References CRSelector, _CRSelector::next, and _CRSelector::prev. |
|
Increments the ref count of the current instance of CRSelector.
Definition at line 192 of file cr-selector.c. References _CRSelector::ref_count. Referenced by cr_parser_parse_ruleset(), cr_statement_new_ruleset(), and cr_statement_ruleset_set_sel_list(). |
|
Definition at line 125 of file cr-selector.c. References cr_simple_sel_to_string(), and CRSelector. Referenced by cr_selector_dump(). |
|
Decrements the ref count of the current instance of CRSelector. If the ref count reaches zero, the current instance of CRSelector is destroyed.
Definition at line 209 of file cr-selector.c. References cr_selector_destroy(), and _CRSelector::ref_count. Referenced by cr_parser_parse_ruleset(), and cr_statement_ruleset_set_sel_list(). |
|
Definition at line 40 of file cr-selector.h. Referenced by cr_parser_parse_ruleset(), cr_selector_append(), cr_selector_append_simple_sel(), cr_selector_destroy(), cr_selector_new(), cr_selector_prepend(), and cr_selector_to_string(). |