Go to the documentation of this file.
77 g_return_val_if_fail (result, NULL);
79 result->
type = a_sel_type;
139 g_return_if_fail (a_this
186 g_return_val_if_fail (a_sel, NULL);
188 if (a_this == NULL) {
195 for (cur_sel = a_this;
196 cur_sel && cur_sel->
next; cur_sel = cur_sel->
next) ;
198 g_return_val_if_fail (cur_sel != NULL, NULL);
200 cur_sel->
next = a_sel;
201 a_sel->
prev = cur_sel;
220 g_return_val_if_fail (a_sel, NULL);
222 if (a_this == NULL) {
226 a_sel->
next = a_this;
227 a_this->
prev = a_sel;
235 guchar *result = NULL;
236 GString *str_buf = NULL;
239 g_return_val_if_fail (a_this, NULL);
241 str_buf = g_string_new (NULL);
243 for (cur = a_this; cur; cur = cur->
next) {
250 name = (guchar *) g_strndup
255 g_string_append_printf
270 name = (guchar *) g_strndup
275 g_string_append_printf
289 guchar *tmp_str = NULL;
294 g_string_append_printf
306 guchar *tmp_str = NULL;
308 g_string_append_c (str_buf,
'[');
312 g_string_append_printf
313 (str_buf,
"%s]", tmp_str);
326 result = (guchar *) str_buf->str;
327 g_string_free (str_buf, FALSE);
337 guchar *result = NULL;
338 GString *str_buf = NULL;
340 g_return_val_if_fail (a_this, NULL) ;
342 str_buf = g_string_new (NULL) ;
344 switch (a_this->
type) {
350 name = (guchar *) g_strndup
355 g_string_append_printf
370 name = (guchar *) g_strndup
375 g_string_append_printf
389 guchar *tmp_str = NULL;
394 g_string_append_printf
406 guchar *tmp_str = NULL;
408 g_string_append_printf (str_buf,
"[");
412 g_string_append_printf
413 (str_buf,
"%s]", tmp_str);
425 result = (guchar *) str_buf->str;
426 g_string_free (str_buf, FALSE);
444 guchar *tmp_str = NULL;
446 g_return_if_fail (a_fp);
451 fprintf (a_fp,
"%s", tmp_str);
468 g_return_if_fail (a_this);
470 switch (a_this->
type) {
@ PSEUDO_CLASS_ADD_SELECTOR
CRAdditionalSel * cr_additional_sel_new_with_type(enum AddSelectorType a_sel_type)
cr_additional_sel_new_with_type: @a_sel_type: the type of the newly built instance of CRAdditionalSel...
guchar * cr_pseudo_to_string(CRPseudo const *a_this)
cr_pseudo_to_string: @a_this: the current instance of #CRPseud.
#define cr_utils_trace_debug(a_msg)
Trace a debug message.
CRAdditionalSel * cr_additional_sel_new(void)
CRAdditionalSel:
typedefG_BEGIN_DECLS struct _CRString CRString
union CRAdditionalSelectorContent content
guchar * cr_additional_sel_to_string(CRAdditionalSel const *a_this)
void cr_additional_sel_set_pseudo(CRAdditionalSel *a_this, CRPseudo *a_pseudo)
cr_additional_sel_set_pseudo: @a_this: the "this pointer" of the current instance of CRAdditionalSel ...
guchar * cr_additional_sel_one_to_string(CRAdditionalSel const *a_this)
void cr_additional_sel_set_id_name(CRAdditionalSel *a_this, CRString *a_id)
cr_additional_sel_set_id_name: @a_this: the "this pointer" of the current instance of CRAdditionalSel...
void cr_string_destroy(CRString *a_this)
guchar * cr_attr_sel_to_string(CRAttrSel const *a_this)
cr_attr_sel_to_string: @a_this: the current instance of CRAttrSel.
void cr_additional_sel_set_attr_sel(CRAdditionalSel *a_this, CRAttrSel *a_sel)
cr_additional_sel_set_attr_sel: @a_this: the "this pointer" of the current instance of CRAdditionalSe...
CRAdditionalSel * cr_additional_sel_prepend(CRAdditionalSel *a_this, CRAdditionalSel *a_sel)
cr_additional_sel_prepend: @a_this: the "this pointer" of the current instance of CRAdditionalSel .
void cr_additional_sel_destroy(CRAdditionalSel *a_this)
cr_additional_sel_destroy: @a_this: the "this pointer" of the current instance of CRAdditionalSel .
void cr_additional_sel_dump(CRAdditionalSel const *a_this, FILE *a_fp)
cr_additional_sel_dump: @a_this: the "this pointer" of the current instance of CRAdditionalSel.
CRAdditionalSel * cr_additional_sel_append(CRAdditionalSel *a_this, CRAdditionalSel *a_sel)
cr_additional_sel_append: @a_this: the "this pointer" of the current instance of CRAdditionalSel .
void cr_additional_sel_set_class_name(CRAdditionalSel *a_this, CRString *a_class_name)
cr_additional_sel_set_class_name: @a_this: the "this pointer" of the current instance of CRAdditional...
void cr_attr_sel_destroy(CRAttrSel *a_this)
cr_attr_sel_destroy: @a_this: the "this pointer" of the current instance of CRAttrSel.
void cr_pseudo_destroy(CRPseudo *a_this)
cr_pseudo_destroy: @a_this: the current instance to destroy.
enum AddSelectorType type