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