#include <stdio.h>
#include "cr-attr-sel.h"
Go to the source code of this file.
Functions | |
CRAttrSel * | cr_attr_sel_new (void) |
CRAttrSel:. | |
enum CRStatus | cr_attr_sel_append_attr_sel (CRAttrSel *a_this, CRAttrSel *a_attr_sel) |
cr_attr_sel_append_attr_sel: : the this pointer of the current instance of CRAttrSel. | |
enum CRStatus | cr_attr_sel_prepend_attr_sel (CRAttrSel *a_this, CRAttrSel *a_attr_sel) |
cr_attr_sel_prepend_attr_sel: : the "this pointer" of the current instance *of CRAttrSel. | |
guchar * | cr_attr_sel_to_string (CRAttrSel const *a_this) |
cr_attr_sel_to_string: : the current instance of CRAttrSel. | |
void | cr_attr_sel_dump (CRAttrSel const *a_this, FILE *a_fp) |
cr_attr_sel_dump: : the "this pointer" of the current instance of CRAttrSel. | |
void | cr_attr_sel_destroy (CRAttrSel *a_this) |
cr_attr_sel_destroy: : the "this pointer" of the current instance of CRAttrSel. |
cr_attr_sel_append_attr_sel: : the this pointer of the current instance of CRAttrSel.
: selector to append.
Appends an attribute selector to the current list of attribute selectors represented by a_this. Returns CR_OK upon successfull completion, an error code otherwise.
Definition at line 61 of file cr-attr-sel.c.
References CR_BAD_PARAM_ERROR, CR_OK, _CRAttrSel::next, and _CRAttrSel::prev.
void cr_attr_sel_destroy | ( | CRAttrSel * | a_this | ) |
cr_attr_sel_destroy: : the "this pointer" of the current instance of CRAttrSel.
Destroys the current instance of CRAttrSel. Frees all the fields if they are non null.
Definition at line 211 of file cr-attr-sel.c.
References cr_attr_sel_destroy(), cr_string_destroy(), _CRAttrSel::name, _CRAttrSel::next, and _CRAttrSel::value.
Referenced by cr_additional_sel_destroy(), cr_additional_sel_set_attr_sel(), and cr_attr_sel_destroy().
void cr_attr_sel_dump | ( | CRAttrSel const * | a_this, | |
FILE * | a_fp | |||
) |
cr_attr_sel_dump: : the "this pointer" of the current instance of CRAttrSel.
: the destination file.
Dumps the current instance of CRAttrSel to a file.
Definition at line 187 of file cr-attr-sel.c.
References cr_attr_sel_to_string().
CRAttrSel* cr_attr_sel_new | ( | void | ) |
CRAttrSel:.
CRAdditionalSel abstracts an attribute selector. Attributes selectors are described in the css2 spec [5.8]. There are more generally used in the css2 selectors described in css2 spec [5] . cr_attr_sel_new: The constructor of CRAttrSel. Returns the newly allocated instance of CRAttrSel.
Definition at line 42 of file cr-attr-sel.c.
cr_attr_sel_prepend_attr_sel: : the "this pointer" of the current instance *of CRAttrSel.
: the attribute selector to append.
Prepends an attribute selector to the list of attributes selector represented by a_this. Returns CR_OK upon successfull completion, an error code otherwise.
Definition at line 88 of file cr-attr-sel.c.
References CR_BAD_PARAM_ERROR, CR_OK, _CRAttrSel::next, and _CRAttrSel::prev.
guchar* cr_attr_sel_to_string | ( | CRAttrSel const * | a_this | ) |
cr_attr_sel_to_string: : the current instance of CRAttrSel.
Serializes an attribute selector into a string Returns the serialized attribute selector.
Definition at line 108 of file cr-attr-sel.c.
References DASHMATCH, EQUALS, INCLUDES, _CRAttrSel::match_way, _CRAttrSel::name, _CRAttrSel::next, _CRAttrSel::prev, SET, and _CRAttrSel::value.
Referenced by cr_additional_sel_one_to_string(), cr_additional_sel_to_string(), and cr_attr_sel_dump().