enum CRStatus cr_term_set_uri(CRTerm *a_this, CRString *a_str)
enum Operator the_operator
The operator associated to the current term.
enum CRTermType type
The type of the term.
CRTerm * cr_term_append_term(CRTerm *a_this, CRTerm *a_new_term)
Appends a new term to the current list of CRTerm.
enum CRStatus cr_term_set_number(CRTerm *a_this, CRNum *a_num)
CRTerm * cr_term_get_from_list(CRTerm *a_this, int itemnr)
Use an index to get a CRTerm from the expression.
enum CRStatus cr_term_set_ident(CRTerm *a_this, CRString *a_str)
enum CRStatus cr_term_set_string(CRTerm *a_this, CRString *a_str)
typedefG_BEGIN_DECLS struct _CRString CRString
CRParsingLocation location
An abstraction of a number (num) as defined in the css2 spec.
union _CRTerm::@3 ext_content
If the term is of type UNICODERANGE, this field holds the upper bound of the range.
CRTerm * cr_term_prepend_term(CRTerm *a_this, CRTerm *a_new_term)
Prepends a term to the list of terms represented by a_this.
CRTerm * next
A pointer to the next term, just in case this term is part of an expression.
enum CRStatus cr_term_set_hash(CRTerm *a_this, CRString *a_str)
guchar * cr_term_one_to_string(CRTerm const *a_this)
enum UnaryOperator unary_op
The unary operator associated to the current term.
typedefG_BEGIN_DECLS struct _CRRgb CRRgb
gpointer app_data
A spare pointer, just in case.
void cr_term_ref(CRTerm *a_this)
Increments the reference counter of the current instance of CRTerm.
gboolean cr_term_unref(CRTerm *a_this)
Decrements the ref count of the current instance of CRTerm.
CREncoding
Encoding values.
void cr_term_dump(CRTerm const *a_this, FILE *a_fp)
Dumps the expression (a list of terms connected by operators) to a file.
enum CRStatus cr_term_set_rgb(CRTerm *a_this, CRRgb *a_rgb)
An abstraction of a css2 term as defined in the CSS2 spec in appendix D.1: term ::= [ NUMBER S* | PER...
union _CRTerm::@2 content
The content of the term.
CRStatus
The status type returned by the methods of the croco library.
CRTerm * cr_term_new(void)
Instanciate a CRTerm.
int cr_term_nr_values(CRTerm const *a_this)
Return the number of terms in the expression.
CRTerm * prev
A pointer to the previous term.
CRTerm * cr_term_parse_expression_from_buf(const guchar *a_buf, enum CREncoding a_encoding)
Parses an expresion as defined by the css2 spec and builds the expression as a list of terms.
enum CRStatus cr_term_set_function(CRTerm *a_this, CRString *a_func_name, CRTerm *a_func_param)
void cr_term_destroy(CRTerm *a_term)
The destructor of the the CRTerm class.
guchar * cr_term_to_string(CRTerm const *a_this)
Serializes the expression represented by the chained instances of #CRterm.